InterviewSolution
| 1. |
How To Construct My Own "fake" Gtk.gdk.event? |
|
Answer» It's very easy. LET's GO create a KEYPRESS event that is the same as if the user has pressed Ctrl+Enter: event = gtk.gdk.Event(gtk.gdk.KEY_PRESS) the LAST line "passes" the signal to the widget we want to handle this fake event. It's very easy. Let's go create a keypress event that is the same as if the user has pressed Ctrl+Enter: event = gtk.gdk.Event(gtk.gdk.KEY_PRESS) the last line "passes" the signal to the widget we want to handle this fake event. |
|