X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8eca4fef106b8327e2e55636de3f68a511a4c392..302e251b4df575dc60eb5bfafc931652dad165ec:/wxPython/demo/Cursor.py?ds=inline diff --git a/wxPython/demo/Cursor.py b/wxPython/demo/Cursor.py index 0429bdd4b9..29b7f9c7ea 100644 --- a/wxPython/demo/Cursor.py +++ b/wxPython/demo/Cursor.py @@ -109,7 +109,8 @@ class TestPanel(wx.Panel): dc = wx.ClientDC(self.win) dc.SetPen(wx.Pen("RED")) dc.SetBrush(wx.Brush("RED")) - dc.DrawCircle(evt.GetPosition(), 4) + pos = evt.GetPosition() + dc.DrawCircle(pos.x, pos.y, 4) #----------------------------------------------------------------------