FIx3r
(usa Ubuntu)
Enviado em 31/03/2010 - 22:21h
tentei td e não roda
import gtk
class Window(gtk.Window):
def __init__(self):
gtk.Window.__init__(self)
self.set_title('ADS ')
self.set_border_width(5)
self.botao = gtk.Button()
self.add(self.botao)
window = Window()
window.show_all()
o erro que mostra é esse:
Traceback (most recent call last):
File "gtk.py", line 2, in <module>
import gtk
File "/home/professor/Desktop/gtk.py", line 4, in <module>
class Window(gtk.Window):
AttributeError: 'module' object has no attribute 'Window'