Re: [pyar] Pygtk AboutDialogs

Página superior
Adjuntos:
+ (text/plain)
+ (text/html)
+ (text/plain)

Responder a este mensaje
Autor: N Cis
Fecha:  
A: pyar
Asunto: Re: [pyar] Pygtk AboutDialogs

»Si definis a Link() en el espacio Global? :)
Codigo:
def Link(*args):
print args

class AboutOkeyko(gtk.AboutDialog):
''' About Dialog for Okeykoclient'''
def __init__(self, Config):
gtk.AboutDialog.__init__(self)
gtk.about_dialog_set_url_hook(Link)
self.set_name(NAME)
logo = gtk.gdk.pixbuf_new_from_file(Config.pathFile('theme-logo.png'))
self.set_logo(logo)
self.set_icon(logo)
self.set_version(VERSION)
self.set_copyright(COPYRIGHT)
self.set_comments(COMMENTS)
self.set_license(LICENSE)
self.set_website(WEBSITE)
#self.set_website_label(WEBSITE_LABEL)
self.set_authors(AUTHORS)

self.connect('response', lambda *x: self.destroy() if (x[1] == -6) else x)

#self.set_translator_credits(TRANSLATORS)

Mismo error, la consola no devuelve nada, ni un error, nada. El link se sigue abriendo en el navegador.
Alguna idea?.

Saludos y gracias :P
                       _______________________________________________
pyar mailing list pyar@???
http://listas.python.org.ar/listinfo/pyar

PyAr - Python Argentina - Sitio web: http://www.python.org.ar/