<div class="gmail_quote">2010/3/17 Antonio Fittipaldi <span dir="ltr"><<a href="mailto:moaiamorfo@python-it.org">moaiamorfo@python-it.org</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Buongiorno a tutti,<br>
<br>
sto cercando di impostare un ambiente di lavoro PyGTK + Glade sotto<br>
Windows Vista.<br>
Ho dunque installato Python 2.6.4 e, successivamente, Glade 3.6.7 con<br>
GTK+ (da qui, <a href="http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/glade3-3.6.7-with-GTK+.exe" target="_blank">http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/glade3-3.6.7-with-GTK+.exe</a>),<br>
PyGTK 2.16 (<a href="http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.16/pygtk-2.16.0.win32-py2.6.exe" target="_blank">http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.16/pygtk-2.16.0.win32-py2.6.exe</a>),<br>
PyCairo 1.8.6 (<a href="http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.8/pycairo-1.8.6.win32-py2.6.exe" target="_blank">http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.8/pycairo-1.8.6.win32-py2.6.exe</a>)<br>
e PyGobject 2.20<br>
(<a href="http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.20/pygobject-2.20.0.win32-py2.6.exe" target="_blank">http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.20/pygobject-2.20.0.win32-py2.6.exe</a>).<br>
<br>
Un programmino semplice come questo<br>
<br>
import gtk<br>
<br>
window = gtk.Window()<br>
window.set_title("PyGTK Test Window")<br>
window.connect("destroy", gtk.main_quit)<br>
window.show_all()<br>
<br>
gtk.main()<br>
<br>
funziona correttamente (import gtk e import pygtk vanno a buon fine).<br>
Il problema si presenta quando vado di import pygtk.glade, ho un bel<br><font color="#888888"><br></font></blockquote><div><br>A memoria devi fare<br><br>import gtk.glade<br><br>e non <br><br>import pygtk.glade <br></div>
</div><br clear="all"><br>-- <br>Marco Bonifazi<br><a href="http://www.bonifazi.eu">http://www.bonifazi.eu</a><br>