|
Can't get key-press-events..: msg#00184gnome.gtk+.python
Hi. I'm using python-gtk2 1.99.17-3 on debian. The problem is that i can't get keypress events, and, i'm getting the button-press-events in right way. I'm tryng to get them, on a subclass of gtk.DrawingArea. The code is this: self.connect("expose-event", self.area_expose_cb) self.add_events(gtk.gdk.BUTTON_PRESS_MASK) self.add_events(gtk.gdk.KEY_PRESS) self.connect("button_press_event",self.someevent) self.connect("key_press_event",self.someevent) #self.connect("key-press-event",self.keyevent) I'm not too familiar with python-gtk, i make all the tests that could help. the first: button-press-event works correctly. I tried without the button_press.. Also i tried wrapping my DA subclass on a gtk.EventBox.. but keeps failing. Well.. any help would be appreciated. Now i'm going to check te value of gtk.gdk.KEY_PRESS. Thanks a lot. david -- + There is no dark side of the moon really. Matter of fact it's all dark. _______________________________________________ pygtk mailing list pygtk@xxxxxxxxxx http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | ANN: matplotlib 0.21 -- matlab compatible plotting in python: 00184, John Hunter |
|---|---|
| Next by Date: | Can't get key-press events..: 00184, alejandro david weil |
| Previous by Thread: | ANN: matplotlib 0.21 -- matlab compatible plotting in pythoni: 00184, John Hunter |
| Next by Thread: | Re: Can't get key-press-events..: 00184, James Henstridge |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |