[pygtk] Can you pass extra parameters with gtk/glade, autoconnect??

Ryan Rousseau rrouss7 at lsu.edu
Tue Oct 11 21:09:49 WST 2005


I'm sorry, I thought he was referring to the signal_autoconnect method 
in gtk.glade.XML

Nikos Kouremenos wrote:

>Ryan, that is not autoconnect(self) which I think Chris means
>
>On 10/11/05, Ryan Rousseau <rrouss7 at lsu.edu> wrote:
>  
>
>>"""
>>I read in the FAQs that you can pass xtra args when doing signal
>>connects manually (through the 3rd arg of .connect)  Is there a way to
>>do the same but with the signal autoconnect method when you're using a
>>glade file?  Thanks for any info
>>"""
>>
>>When you make your callback dictionary you can specify extra arguments.
>>
>>callbacks = {
>>
>>               'on_my_button_clicked':
>>
>>               my_button_clicked, # no extra args
>>
>>               'on_my_other_button_clicked':
>>
>>               (my_other_button_clicked, arg1, arg2), # 2 extra args
>>
>>            }
>>
>>
>>Ryan R
>>
>>_______________________________________________
>>pygtk mailing list   pygtk at daa.com.au
>>http://www.daa.com.au/mailman/listinfo/pygtk
>>Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>>
>>    
>>
>
>
>
>--
>Nikos Kouremenos | Jabber ID: nkour at jabber.org | http://members.hellug.gr/nkour
>  
>


More information about the pygtk mailing list