projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated WinCE project file list
[wxWidgets.git]
/
wxPython
/
demo
/
wxKeyEvents.py
diff --git
a/wxPython/demo/wxKeyEvents.py
b/wxPython/demo/wxKeyEvents.py
index 7c603f17ab76b73fd105876f209c58205777f06f..7e214089f50803dd3a3b04a1268a75c4e8d52125 100644
(file)
--- a/
wxPython/demo/wxKeyEvents.py
+++ b/
wxPython/demo/wxKeyEvents.py
@@
-114,14
+114,17
@@
keyMap = {
class KeySink(wxWindow):
def __init__(self, parent):
class KeySink(wxWindow):
def __init__(self, parent):
- wxWindow.__init__(self, parent, -1,
- style=wxRAISED_BORDER | wxWANTS_CHARS)
+ wxWindow.__init__(self, parent, -1, style =
+ wxWANTS_CHARS
+ #| wxRAISED_BORDER
+ #| wxSUNKEN_BORDER
+ )
self.SetBackgroundColour(wxBLUE)
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)
@@
-161,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):
@@
-274,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)