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:
parent
0ae3862362
commit
c59e73e82d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user