projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compile fix.
[wxWidgets.git]
/
wxPython
/
wx
/
lib
/
buttons.py
diff --git
a/wxPython/wx/lib/buttons.py
b/wxPython/wx/lib/buttons.py
index e01fd4b55bbc0bad306ef0465b79bf2f8c552ead..11c3e77860583b9c2fde845269dce5c5fca6c4e7 100644
(file)
--- a/
wxPython/wx/lib/buttons.py
+++ b/
wxPython/wx/lib/buttons.py
@@
-262,7
+262,7
@@
class GenButton(wx.PyControl):
x2 = width-1
y2 = height-1
x2 = width-1
y2 = height-1
- dc = wx.
Buffered
PaintDC(self)
+ dc = wx.PaintDC(self)
brush = None
if self.up:
brush = None
if self.up:
@@
-347,14
+347,14
@@
class GenButton(wx.PyControl):
def OnKeyDown(self, event):
def OnKeyDown(self, event):
- if self.hasFocus and event.KeyCode() == ord(" "):
+ if self.hasFocus and event.
Get
KeyCode() == ord(" "):
self.up = False
self.Refresh()
event.Skip()
def OnKeyUp(self, event):
self.up = False
self.Refresh()
event.Skip()
def OnKeyUp(self, event):
- if self.hasFocus and event.KeyCode() == ord(" "):
+ if self.hasFocus and event.
Get
KeyCode() == ord(" "):
self.up = True
self.Notify()
self.Refresh()
self.up = True
self.Notify()
self.Refresh()
@@
-551,7
+551,7
@@
class __ToggleMixin:
event.Skip()
def OnKeyUp(self, event):
event.Skip()
def OnKeyUp(self, event):
- if self.hasFocus and event.KeyCode() == ord(" "):
+ if self.hasFocus and event.
Get
KeyCode() == ord(" "):
self.up = not self.up
self.Notify()
self.Refresh()
self.up = not self.up
self.Notify()
self.Refresh()