Reverted to old method names/signatures for wx.DC, updated lib and
demo to match. Also fixed some deprecation warnings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -67,11 +67,11 @@ class TestPanel(wx.Panel):
|
||||
b = buttons.GenBitmapButton(self, -1, None)
|
||||
self.Bind(wx.EVT_BUTTON, self.OnButton, b)
|
||||
bmp = images.getBulb1Bitmap()
|
||||
mask = wx.MaskColour(bmp, wx.BLUE)
|
||||
mask = wx.Mask(bmp, wx.BLUE)
|
||||
bmp.SetMask(mask)
|
||||
b.SetBitmapLabel(bmp)
|
||||
bmp = images.getBulb2Bitmap()
|
||||
mask = wx.MaskColour(bmp, wx.BLUE)
|
||||
mask = wx.Mask(bmp, wx.BLUE)
|
||||
bmp.SetMask(mask)
|
||||
b.SetBitmapSelected(bmp)
|
||||
b.SetBestSize()
|
||||
@@ -86,11 +86,11 @@ class TestPanel(wx.Panel):
|
||||
b = buttons.GenBitmapToggleButton(self, -1, None)
|
||||
self.Bind(wx.EVT_BUTTON, self.OnToggleButton, b)
|
||||
bmp = images.getBulb1Bitmap()
|
||||
mask = wx.MaskColour(bmp, wx.BLUE)
|
||||
mask = wx.Mask(bmp, wx.BLUE)
|
||||
bmp.SetMask(mask)
|
||||
b.SetBitmapLabel(bmp)
|
||||
bmp = images.getBulb2Bitmap()
|
||||
mask = wx.MaskColour(bmp, wx.BLUE)
|
||||
mask = wx.Mask(bmp, wx.BLUE)
|
||||
bmp.SetMask(mask)
|
||||
b.SetBitmapSelected(bmp)
|
||||
b.SetToggle(True)
|
||||
@@ -101,11 +101,11 @@ class TestPanel(wx.Panel):
|
||||
b = buttons.GenBitmapTextButton(self, -1, None, "Bitmapped Text", size = (200, 45))
|
||||
self.Bind(wx.EVT_BUTTON, self.OnButton, b)
|
||||
bmp = images.getBulb1Bitmap()
|
||||
mask = wx.MaskColour(bmp, wx.BLUE)
|
||||
mask = wx.Mask(bmp, wx.BLUE)
|
||||
bmp.SetMask(mask)
|
||||
b.SetBitmapLabel(bmp)
|
||||
bmp = images.getBulb2Bitmap()
|
||||
mask = wx.MaskColour(bmp, wx.BLUE)
|
||||
mask = wx.Mask(bmp, wx.BLUE)
|
||||
bmp.SetMask(mask)
|
||||
b.SetBitmapSelected(bmp)
|
||||
b.SetUseFocusIndicator(False)
|
||||
|
Reference in New Issue
Block a user