Da error al correr este programa.... Gracias...
#***********************************************
# Server TCP/IP
#***********************************************
#!/usr/bin/env python
import gtk
import pygtk
class mundo:
def __init__(self): # funcion
b = gtk.Builder() # Genera las ventanas
b.add_from_file("mundo.xml")
self.ventanaprincipal = b.get_object("ventana") # Variable
self.boton = b.get_object("boton") # Variable
self.ventanamensaje = b.get_object("Ventana1") # Variable
b.connect_signals(self)
self.ventanaprincipal.show()
def on_boton_clicked(self, widget, data=None):
self.ventanamensaje.show()
def on_ventanaprincipal_destroy(self, widget, data=None):
gtk.main_quit()
mundo()
gtk.main()
mundo.py:14: runtimewarning: missing hardler 'on_ventana.png_activate_default'
b.connect_signals(self)
traceback (most recent call last):
File 'mundo.py', line 20, in <module>
mundo()
File mundo.py, line 15, in__init__
self.ventanaprincipal.show()
attributeerror: 'NoneType' object has no attribute 'shlow'
agradezco a quien pueda ayudar.
[email protected]