mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-27 22:20:07 +01:00
⁉️ Not sure if the generated .rst stuff is intended to have
whitespace like this in it or not, so seperating this from the other
commits, so easy to revert if necessary.
17 lines
371 B
Python
17 lines
371 B
Python
|
|
def OnEvent(self, event):
|
|
|
|
dc = wx.ClientDC(self)
|
|
self.DoPrepareDC(dc)
|
|
|
|
dc.SetPen(wx.BLACK_PEN)
|
|
|
|
x, y = event.GetPosition()
|
|
|
|
if (xpos > -1 and ypos > -1 and event.Dragging()):
|
|
dc.DrawLine(xpos, ypos, x, y)
|
|
|
|
xpos = x
|
|
ypos = y
|
|
|