projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compilation fix
[wxWidgets.git]
/
wxPython
/
demo
/
wxKeyEvents.py
diff --git
a/wxPython/demo/wxKeyEvents.py
b/wxPython/demo/wxKeyEvents.py
index e7574a702a46226228d1d3b5efffe105c046409e..7e214089f50803dd3a3b04a1268a75c4e8d52125 100644
(file)
--- a/
wxPython/demo/wxKeyEvents.py
+++ b/
wxPython/demo/wxKeyEvents.py
@@
-120,11
+120,11
@@
class KeySink(wxWindow):
#| wxSUNKEN_BORDER
)
self.SetBackgroundColour(wxBLUE)
#| wxSUNKEN_BORDER
)
self.SetBackgroundColour(wxBLUE)
- self.haveFocus =
f
alse
- self.callSkip =
f
alse
- self.logKeyDn =
t
rue
- self.logKeyUp =
t
rue
- self.logChar =
t
rue
+ self.haveFocus =
F
alse
+ self.callSkip =
F
alse
+ self.logKeyDn =
T
rue
+ self.logKeyUp =
T
rue
+ self.logChar =
T
rue
EVT_PAINT(self, self.OnPaint)
EVT_SET_FOCUS(self, self.OnSetFocus)
EVT_PAINT(self, self.OnPaint)
EVT_SET_FOCUS(self, self.OnSetFocus)
@@
-164,11
+164,11
@@
class KeySink(wxWindow):
def OnSetFocus(self, evt):
def OnSetFocus(self, evt):
- self.haveFocus =
t
rue
+ self.haveFocus =
T
rue
self.Refresh()
def OnKillFocus(self, evt):
self.Refresh()
def OnKillFocus(self, evt):
- self.haveFocus =
f
alse
+ self.haveFocus =
F
alse
self.Refresh()
def OnMouse(self, evt):
self.Refresh()
def OnMouse(self, evt):
@@
-277,15
+277,15
@@
class TestPanel(wxPanel):
cb2 = wxCheckBox(self, -1, "EVT_KEY_UP")
EVT_CHECKBOX(self, cb2.GetId(), self.OnKeyUpCB)
cb2 = wxCheckBox(self, -1, "EVT_KEY_UP")
EVT_CHECKBOX(self, cb2.GetId(), self.OnKeyUpCB)
- cb2.SetValue(
t
rue)
+ cb2.SetValue(
T
rue)
cb3 = wxCheckBox(self, -1, "EVT_KEY_DOWN")
EVT_CHECKBOX(self, cb3.GetId(), self.OnKeyDnCB)
cb3 = wxCheckBox(self, -1, "EVT_KEY_DOWN")
EVT_CHECKBOX(self, cb3.GetId(), self.OnKeyDnCB)
- cb3.SetValue(
t
rue)
+ cb3.SetValue(
T
rue)
cb4 = wxCheckBox(self, -1, "EVT_CHAR")
EVT_CHECKBOX(self, cb4.GetId(), self.OnCharCB)
cb4 = wxCheckBox(self, -1, "EVT_CHAR")
EVT_CHECKBOX(self, cb4.GetId(), self.OnCharCB)
- cb4.SetValue(
t
rue)
+ cb4.SetValue(
T
rue)
buttons = wxBoxSizer(wxHORIZONTAL)
buttons.Add(btn, 0, wxALL, 4)
buttons = wxBoxSizer(wxHORIZONTAL)
buttons.Add(btn, 0, wxALL, 4)