La chiamata pass può essere utile anche quando devi definire una funzione ma ancora non vuoi mettere alcun codice, per esempio:
button = gtk.Button("prova")
button.signal_connect("clicked", bottone_premuto())
def bottone_premuto(button, data=None):
pass # TODO: devo fare qualcosa quando viene premuto il bottone
Una specie di "promemoria" diciamo.
--
Luca Marturana (Luca89) <[EMAIL PROTECTED]>
Website: http://luca89.wordpress.com
Jabber: <[EMAIL PROTECTED]>
MSN: <[EMAIL PROTECTED]>
signature.asc
Description: Questa parte del messaggio è firmata
_______________________________________________ Python mailing list [email protected] http://lists.python.it/mailman/listinfo/python
