On 18/02/10 16:36, alfonso saavedra wrote:

try:
open(file, 'r')

Lo que te comentaba en el otro correo, no es muy elegante hacer un try/except para ver si un fichero existe. Usa mejor os.path.isfile() y condicionales.

comp_file.add_buttons("Yes to all", 100, "No to all", 101,
gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
comp_file.show()

Si he entendido bien, quieres que este Dialog funcione como ventana modal, ¿no? Prueba con comp_file.run()

http://www.pygtk.org/docs/pygtk/class-gtkdialog.html#method-gtkdialog--run


--
Desarrollador freelance
http://www.arnau-sanchez.com
_______________________________________________
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