From c59e73e82dc01689f1c6b88324f795e1812540e4 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 30 Oct 2004 21:35:54 +0000 Subject: [PATCH] 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 --- wxPython/wx/lib/analogclock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wxPython/wx/lib/analogclock.py b/wxPython/wx/lib/analogclock.py index 428cc27989..72a21e7957 100644 --- a/wxPython/wx/lib/analogclock.py +++ b/wxPython/wx/lib/analogclock.py @@ -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):