[pygtk] check button state continuously
Karsten Henke
henke at robolab.de
Fri Sep 29 17:19:19 WST 2006
Hello,
i try to write a button callback, that repeatedly calls a function, as
long as the button is pressed. For security reasons i don't want to wait
for the released signal, but check the button state continuously. My
code would look like this:
while (button_is_pressed):
move_robot()
Unfortunately i cannot find a according variable in pygtk. Is there a
variable that holds the button state or what would be the gtk way to do
this?
Tanks in advance,
Karsten Henke
More information about the pygtk
mailing list