Il giorno sab, 16/01/2010 alle 19.30 +0100, Marco Fochesato ha scritto: > Ciao a tutti, > sono un sei mesi che ho iniziato ad utilizzare Python, e lo trovo > stupendo. > Ho giĆ creato una mia applicazione, usando le librerie Tkinter. > > Ora vorrei iniziare a studiare un po' le Gtk.. > ho iniziato con il tutorial su Pygtk, ma mi blocco al primo programmino: > > import pygtk > pygtk.require('2.0') > import gtk > class FirstWin: > def __init__(self): > self.win = gtk.Window(gtk.WINDOW_TOPLEVEL) > self.win.show() > def main(self): > gtk.main() > if __name__ == "__main__": > first = FirstWin() > first.main() > > con sto risultato: > > self.win = gtk.Window(gtk.WINDOW_TOPLEVEL) > AttributeError: 'module' object has no attribute 'Window' > > Dove sbaglio?
Potresti riportare un traceback completo? A me il programmino funziona... Come lo esegui? > Lavoro su Ubuntu 9.10 anch'io... ciao Pietro _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python