x2 = width-1
y2 = height-1
- dc = wx.BufferedPaintDC(self)
+ dc = wx.PaintDC(self)
brush = None
if self.up:
def OnKeyDown(self, event):
- if self.hasFocus and event.KeyCode() == ord(" "):
+ if self.hasFocus and event.GetKeyCode() == ord(" "):
self.up = False
self.Refresh()
event.Skip()
def OnKeyUp(self, event):
- if self.hasFocus and event.KeyCode() == ord(" "):
+ if self.hasFocus and event.GetKeyCode() == ord(" "):
self.up = True
self.Notify()
self.Refresh()
event.Skip()
def OnKeyUp(self, event):
- if self.hasFocus and event.KeyCode() == ord(" "):
+ if self.hasFocus and event.GetKeyCode() == ord(" "):
self.up = not self.up
self.Notify()
self.Refresh()