Exemplo n.º 1
0
 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]
Exemplo n.º 2
0
    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]
Exemplo n.º 3
0
 def GetIcon(self, background, state):
     return NativeIcon.getInstance().getBitmap(self, self.icontype, background, state)
Exemplo n.º 4
0
 def GetIcon(self, icontype, background, state):
     return NativeIcon.getInstance().getBitmap(self, icontype, background,
                                               state)