This is what you need to do for autoconnect the signal handlers.
1)signal_autoconnect takes in python dictionary.
2)For the dictionary u need to do:
self.dic = {}
self.dic[f] = getattr(self, f)
self.widgets.signal_autoconnect(self.dic)
3)f is your signal handler function name.
On 4/26/05, Konrad Zielinski <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> hi,
>
> i am getting the following error on startup of a pygtk
> applicaiton. what is most strange is that this code was
> working, even though I have not made any chagnes to
> the code implementing the handlers
>
> **(testchallenger.py:4060): WARNING **: `handler for
> on_scriptButton_clicked' not callable or a tuple
>
> Notes:
> there is only 51 liens in challanger.
> The actual handler is defined in a diferent file translatorgui.py
> which is bieng imported.
> the code runs somethign along the lines of
>
> class TransGUI(object):
> def __init__(self)
> ...
> self.widgets = gtk.glade.XML("transgui.glade")
> self.widgets.signal_autoconnect(self)
>
> def on_scriptButton_clicked(self, button):
> ..
>
> I've tried to google the error message with no sucess,
> Where should I start in debugging this problem.
>
>
>
> Regards
>
>
>
>
>
>
>
>
>
> Konrad Zielinski
> IT Manager
> Lifespan Financial Planning Pty Ltd
> Ph: 02 9252 2000
> Fax: 02 9252 2330
> Email: [EMAIL PROTECTED]
>
>
>
> OpenNameType
>
>
>
>
> Lifespan Financial Planning Pty Ltd ABN 23 065 921 735
> Australian Financial Services Licence Number 229892 * Financial Planning
> Association of Australia Limited - Principal Member
>
> Head Office Level 1, 20 Loftus Street, Sydney * PO Box R686 Royal Exchange
> Sydney 1225
> Tel 02 9252 2000 * Fax 02 9252 2330 * http://www.lifespanfp.com.au/
> _______________________________________________
> pygtk mailing list [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
>
>
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/