Hello Timo!!<br><br>Thank you so much for your help! I&#39;ll do it <br><div class="gmail_quote">2011/8/17 Timo <span dir="ltr">&lt;<a href="mailto:timomlists@gmail.com">timomlists@gmail.com</a>&gt;</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 &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
&gt;&gt;&gt; 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>
&gt;&gt;&gt;<br>
My code is:<br>
import pygtk<br>
pygtk.require(&quot;2.0&quot;)<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(&quot;ejemplo_glade.<u></u>glade&quot;)<br>
        signals = { &quot;on_entry1_activate&quot; : self.on_button1_clicked,<br>
                    &quot;on_button1_clicked&quot; : self.on_button1_clicked,<br>
                    &quot;gtk_main_quit&quot; : gtk.main_quit }<br>
        self.widgets.signal_<u></u>autoconnect(signals)<br>
        self.label1 = self.widgets.get_widget(&quot;<u></u>label1&quot;)<br>
        self.entry1 = self.widgets.get_widget(&quot;<u></u>entry1&quot;)<br>
        def on_button1_clicked(self, widget):<br>
            texto = self.entry1.get_text()<br>
            self.label1.set_text(&quot;Hola %s&quot; % texto)<br>
<br>
<br>
if __name__ == &quot;__main__&quot;:<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>