X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdc775af55c604458345c7045b8478fa230e3bce..28999ba6310e9c110a963223fd38e1f340e60568:/wxPython/wx/lib/analogclock.py?ds=sidebyside 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):