From: Robin Dunn Date: Tue, 29 Jun 2004 02:04:04 +0000 (+0000) Subject: Refresh after changing the bitmap X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4e4a10ba27b06cca2555b989bd05a0af08eb0237?ds=inline Refresh after changing the bitmap git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/lib/colourselect.py b/wxPython/wx/lib/colourselect.py index 689e467e67..f71329967e 100644 --- a/wxPython/wx/lib/colourselect.py +++ b/wxPython/wx/lib/colourselect.py @@ -133,7 +133,8 @@ class ColourSelect(wx.BitmapButton): self.SetBitmapDisabled(bmp) self.SetBitmapFocus(bmp) self.SetBitmapSelected(bmp) - + self.Refresh() + def OnChange(self): wx.PostEvent(self, ColourSelectEvent(self.GetId(), self.GetValue())) @@ -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...