X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdc775af55c604458345c7045b8478fa230e3bce..a0be6908526c8030fc8649b5d0a42c49ce4585ad:/wxPython/wx/lib/analogclock.py 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):