I am using pygtk with glade to make a simple program which (by now) consists on:
GUI:
A grid 4×4, each one showing an name.
Under the grid goes a text Entry.
The program runs in fullscreen.
BEHAVIOR:
Each name will be “selectable” for 10secs in an infinite loop. “selectable” means that wherever the user makes a click the name which 10secs time is running is selected and put on the TextEntry.
I already made the GUI, but don’t know how to handle it for detecting the click anywhere on the screen. Any help?
To detect a click anywhere on the screen you can connect a callback for the
button-press-event. Note that this is agdkevent and you must add this event to the mask with theadd_eventsmethod.The following small program should be useful: