Hello Timo!!<br><br>Thank you so much for your help! I'll do it <br><div class="gmail_quote">2011/8/17 Timo <span dir="ltr"><<a href="mailto:timomlists@gmail.com">timomlists@gmail.com</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;">
<div class="im">On 16-08-11 20:46, Susana Iraiis Delgado Rodriguez wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello List!<br>
<br>
I just started to use PyGTK and Glade to create graphical interfaces, my python interpreter version is 2.6.6; I also install the GTK2 Runtime enviroment and Glade 3.6.6. I also installed in my computer pycairo-1.8.10.win32-py2.6.<u></u>exe, pygobject-2.26.0-1.win32-py2.<u></u>6.exe and pygtk-2.16.0+glade.win32-py2.<u></u>6.exe so my graphic application will look and work fine.<br>
<br>
I tried to do an example in order to get familiar with this new tool, but when I run the script I got the next message:<br>
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on<br>
win32<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import glade1<br>
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)<br>
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)<br>
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)<br>
>>><br>
My code is:<br>
import pygtk<br>
pygtk.require("2.0")<br>
import gtk<br>
import gtk.glade<br>
</blockquote></div>
gtk.glade is deprecated, you should use the builtin gtk.builder instead (Google for examples). You should also get the latest GTK/PyGTK versions from the PyGTK website. There is a really nice all-in-one installer!<br>
<br>
Cheers,<br>
Timo<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
<br>
class MainWin:<br>
def __init__(self):<br>
self.widgets = gtk.glade.XML("ejemplo_glade.<u></u>glade")<br>
signals = { "on_entry1_activate" : self.on_button1_clicked,<br>
"on_button1_clicked" : self.on_button1_clicked,<br>
"gtk_main_quit" : gtk.main_quit }<br>
self.widgets.signal_<u></u>autoconnect(signals)<br>
self.label1 = self.widgets.get_widget("<u></u>label1")<br>
self.entry1 = self.widgets.get_widget("<u></u>entry1")<br>
def on_button1_clicked(self, widget):<br>
texto = self.entry1.get_text()<br>
self.label1.set_text("Hola %s" % texto)<br>
<br>
<br>
if __name__ == "__main__":<br>
MainWin()<br>
gtk.main()<br>
<br>
Does my python libraries are the correct ones for my interpreter?<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</blockquote></div><br>