Refresh after changing the bitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,7 +133,8 @@ class ColourSelect(wx.BitmapButton):
|
|||||||
self.SetBitmapDisabled(bmp)
|
self.SetBitmapDisabled(bmp)
|
||||||
self.SetBitmapFocus(bmp)
|
self.SetBitmapFocus(bmp)
|
||||||
self.SetBitmapSelected(bmp)
|
self.SetBitmapSelected(bmp)
|
||||||
|
self.Refresh()
|
||||||
|
|
||||||
|
|
||||||
def OnChange(self):
|
def OnChange(self):
|
||||||
wx.PostEvent(self, ColourSelectEvent(self.GetId(), self.GetValue()))
|
wx.PostEvent(self, ColourSelectEvent(self.GetId(), self.GetValue()))
|
||||||
@@ -150,7 +151,6 @@ class ColourSelect(wx.BitmapButton):
|
|||||||
if changed:
|
if changed:
|
||||||
data = dlg.GetColourData()
|
data = dlg.GetColourData()
|
||||||
self.SetColour(data.GetColour())
|
self.SetColour(data.GetColour())
|
||||||
|
|
||||||
dlg.Destroy()
|
dlg.Destroy()
|
||||||
|
|
||||||
# moved after dlg.Destroy, since who knows what the callback will do...
|
# moved after dlg.Destroy, since who knows what the callback will do...
|
||||||
|
Reference in New Issue
Block a user