mirror of
https://github.com/python/cpython.git
synced 2025-07-29 22:24:49 +00:00
parent
ecfeb7f095
commit
70a6b49821
246 changed files with 926 additions and 962 deletions
|
@ -4,7 +4,7 @@ import W
|
|||
|
||||
# key callback function
|
||||
def tester(char, event):
|
||||
text = `char` + "\r" + `ord(char)` + "\r" + hex(ord(char)) + "\r" + oct(ord(char))
|
||||
text = "%r\r%d\r%s\r%s" % (char, ord(char), hex(ord(chart)), oct(ord(char)))
|
||||
window.keys.set(text)
|
||||
|
||||
# close callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue