"Iakov Davydov" <u...@myths.ru> a écrit : > Hello. > > The short form of question: > where the gtk_accel_groups_activate () gone? > http://www.gtk.org/api/2.6/gtk/gtk-Keyboard-Accelerators.html#gtk-accel-groups-activate > > The complete description: > There is a problem in Gajim I am trying to fix. There is a readonly > gtk.TextView widget. TextView should work correctly on Control-C and > other shortcuts. But if other key is pressed it should redirect this > event to other widget. > > Currently the code looks like this: > > def _conv_textview_key_press_event(self, widget, event): > if (event.state & gtk.gdk.CONTROL_MASK and > event.keyval in (gtk.keysyms.c, > gtk.keysyms.Insert)): > return False > self.parent_win.notebook.emit('key_press_event', event) > return True > > The problem is that only accels can convert characters from different > layouts (so if I use Cyrillic layout then keypress will not receive > Control-C). So I need a way to check if that accel can be handled by > textview widget. > > In gtk I can use gtk_accel_groups_activate(textview ...) and if it is > false call emit key-press-event. What should I do in pygtk? I cannot > find corresponding function. > > Thanks.
Any idea why this function is not implemented in pygtk? -- Yann ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/