X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbc5a00631ff8eec5885bd5a88754fac339cb958..55580c9ddbbde02584cdcb28b55f7a3bdfa2b708:/wxPython/wx/lib/colourselect.py 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...