Use window.SetShape only on wxmsw

This commit is contained in:
HomeWorld
2010-11-09 20:30:01 +02:00
parent 0019ea2cca
commit 6b99d8e717

View File

@@ -1288,7 +1288,10 @@ class PFBitmapFrame(wx.Frame):
self.direction = 1
self.transp = 0
self.SetSize((bitmap.GetWidth(),bitmap.GetHeight()))
self.SetRoundShape()
if 'wxMSW' in wx.PlatformInfo:
self.SetRoundShape()
else:
self.SetTransparent(0)
self.Refresh()
def OnTimer(self, event):