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,6 +136,7 @@ class AnalogClockWindow(wx.PyWindow):
|
||||
|
||||
def OnPaint(self, event):
|
||||
dc = wx.BufferedPaintDC(self)
|
||||
if hasattr(self, 'coords'):
|
||||
self._doDrawHands(dc, True)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user