X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/caeac82e4d649027472b6696513d632d4370f4d4..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/wx/lib/analogclock/setup.py diff --git a/wxPython/wx/lib/analogclock/setup.py b/wxPython/wx/lib/analogclock/setup.py index fbfda37b02..c09d2fc0d3 100644 --- a/wxPython/wx/lib/analogclock/setup.py +++ b/wxPython/wx/lib/analogclock/setup.py @@ -400,20 +400,14 @@ class Setup(wx.Dialog): flag = wx.LEFT|wx.RIGHT, border=6) sizer.Add(bsizer, 0, flag=wx.ALIGN_RIGHT|wx.ALL, border=6) - self.Bind(wx.EVT_SHOW, self.OnShow) self.Bind(wx.EVT_CLOSE, self.OnClose) self.Bind(wx.EVT_BUTTON, self.OnButton) self.customcolours = [None] * 16 self.SetSizerAndFit(sizer) - - - def OnShow(self, evt): - if self.IsShown(): - self.UpdateControls() - evt.Skip() - + wx.CallAfter(self.UpdateControls) + def OnClose(self, evt): self.Hide()