]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMac apparently doesn't send EVT_SHOW, so just use wx.CallAfter instead
authorRobin Dunn <robin@alldunn.com>
Sat, 21 Oct 2006 01:21:21 +0000 (01:21 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 21 Oct 2006 01:21:21 +0000 (01:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/analogclock/setup.py

index fbfda37b02814c82c26b4c6ab674bb95c2979f21..c09d2fc0d3ebe4efa0c342e3d48322da8c204fb0 100644 (file)
@@ -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)
 
                    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)
         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()
 
     def OnClose(self, evt):
         self.Hide()