Menu

[r783]: / trunk / htdocs / examples / keypress_demo.py  Maximize  Restore  History

Download this file

14 lines (9 with data), 183 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from pylab import *
def press(event):
x = rand()
y = rand()
text(x,y,event.key)
draw()
connect('key_press_event', press)
plot(rand(12), rand(12), 'go')
show()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.