diff options
Diffstat (limited to 'Mac/IDE scripts/Widget demos/KeyTester.py')
| -rw-r--r-- | Mac/IDE scripts/Widget demos/KeyTester.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/IDE scripts/Widget demos/KeyTester.py b/Mac/IDE scripts/Widget demos/KeyTester.py index ec66966..a9f3140 100644 --- a/Mac/IDE scripts/Widget demos/KeyTester.py +++ b/Mac/IDE scripts/Widget demos/KeyTester.py @@ -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 |
