def __createBitmap(self, parent, background, type, flag=0): nativeIcon = NativeIcon.getInstance() down = nativeIcon.getBitmap(parent, type, background, flag) img = down.ConvertToImage() up = img.Rotate90().Rotate90().ConvertToBitmap() empty = wx.EmptyBitmap(up.GetWidth(), up.GetHeight()) dc = wx.MemoryDC(empty) dc.SetBackground(wx.Brush(background)) dc.Clear() dc.SelectObject(wx.NullBitmap) del dc return [down, up, empty]
def __createBitmap(self, parent, background, type, flag=0): if DEBUG: print >> sys.stderr, "Creating new sorting bitmaps", parent, background, type nativeIcon = NativeIcon.getInstance() down = nativeIcon.getBitmap(parent, type, background, flag) img = down.ConvertToImage() up = img.Rotate90().Rotate90().ConvertToBitmap() empty = wx.EmptyBitmap(up.GetWidth(), up.GetHeight()) dc = wx.MemoryDC(empty) dc.SetBackground(wx.Brush(background)) dc.Clear() dc.SelectObject(wx.NullBitmap) del dc return [down, up, empty]
def GetIcon(self, background, state): return NativeIcon.getInstance().getBitmap(self, self.icontype, background, state)
def GetIcon(self, icontype, background, state): return NativeIcon.getInstance().getBitmap(self, icontype, background, state)