2011/9/3 alfonso saavedra <n4...@yahoo.es>:
> Estoy usando Gtk y Python 2. Perdón por no ponerlo

En el objeto evento en el callback hay una propiedad state que
devuelve una mascara de las teclas modificadoras presionadas:

    def on_click(widget, event):
        if event.state & gtk.gdk.CONTROL_MASK:
            print "Click con Control"

Aquí hay una lista de las teclas:
http://www.pygtk.org/pygtk2tutorial/sec-EventHandling.html

Saludos
-- 
Linux Registered User # 386081
A menudo unas pocas horas de "Prueba y error" podrán ahorrarte minutos
de leer manuales.
_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a