Ensure the first EVT_SIZE has happened before the first EVT_PAINT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -136,7 +136,8 @@ class AnalogClockWindow(wx.PyWindow):
|
|||||||
|
|
||||||
def OnPaint(self, event):
|
def OnPaint(self, event):
|
||||||
dc = wx.BufferedPaintDC(self)
|
dc = wx.BufferedPaintDC(self)
|
||||||
self._doDrawHands(dc, True)
|
if hasattr(self, 'coords'):
|
||||||
|
self._doDrawHands(dc, True)
|
||||||
|
|
||||||
|
|
||||||
def OnTimerExpire(self, event):
|
def OnTimerExpire(self, event):
|
||||||
|
Reference in New Issue
Block a user