]> git.saurik.com Git - wxWidgets.git/commitdiff
Ensure the first EVT_SIZE has happened before the first EVT_PAINT
authorRobin Dunn <robin@alldunn.com>
Sat, 30 Oct 2004 21:35:54 +0000 (21:35 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 30 Oct 2004 21:35:54 +0000 (21:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/analogclock.py

index 428cc279893a2365ad4dc92352d17943411d315b..72a21e7957a10f9146512d910c965bd7dcff598e 100644 (file)
@@ -136,7 +136,8 @@ class AnalogClockWindow(wx.PyWindow):
 
     def OnPaint(self, event):
         dc = wx.BufferedPaintDC(self)
-        self._doDrawHands(dc, True)
+        if hasattr(self, 'coords'):
+            self._doDrawHands(dc, True)
 
 
     def OnTimerExpire(self, event):