I wrote a little app awhile ago which used a bunch of hotkeys (shortcuts, whatever they are called) like CTRL-G, ALT-N, etc. I used something very similar to this code:

 if event.state & gtk.gdk.CONTROL_MASK | gtk.gdk.MOD2_MASK:

and so on. I'm trying to re-write my old application using pyGObject and am getting errors referencing no gdk module. Is there a quick way of just doing:

if CTRL-B is pressed:
     do_something()

Thanks.
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to