]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/tests/test_buttonKeyHandler.py
7 print "OnKeyDown", evt
.KeyCode
12 print "OnKeyUp", evt
.KeyCode
17 print "OnChar", evt
.KeyCode
23 frm
= wx
.Frame(None, title
="test_buttonKeyHandler")
26 btn
= wx
.Button(pnl
, label
="Focus me and press a key", pos
=(20,20))
28 btn
.Bind(wx
.EVT_KEY_DOWN
, OnKeyDown
)
29 btn
.Bind(wx
.EVT_KEY_UP
, OnKeyUp
)
30 btn
.Bind(wx
.EVT_CHAR
, OnChar
)