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:
Robin Dunn 2004-06-29 02:04:04 +00:00
parent b3074871ed
commit 4e4a10ba27

View File

@ -133,6 +133,7 @@ class ColourSelect(wx.BitmapButton):
self.SetBitmapDisabled(bmp)
self.SetBitmapFocus(bmp)
self.SetBitmapSelected(bmp)
self.Refresh()
def OnChange(self):
@ -150,7 +151,6 @@ class ColourSelect(wx.BitmapButton):
if changed:
data = dlg.GetColourData()
self.SetColour(data.GetColour())
dlg.Destroy()
# moved after dlg.Destroy, since who knows what the callback will do...