I read this code example in the faq about caputering key strokes.
I do not understand the meaning of *args. It looks like a c pointer ;-) I guess it is 
something else, but I could not find anything in the python docs.

Bye,

Martijn


 def on_key_press(widget, event, *args):
   key = event.keyval
   if key < 256: # chr() breaks if key >= 256
     print "Key was pressed: %s (%s) " % ( chr(key), key )
 #
 w = gtk.GtkWindow()
 w.connect('key_press_event', on_key_press)
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to