The select_row signal of the clist widget takes 4 arguments (like the
error message says). The definition of the signal handler should be
something like:
def some_func(clist, row, column, event):
...
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 19 Oct 1999, Xavier Bourvellec wrote:
> Here is an error i get when selecting a row in a clist widget
> whose 'select row' event is connected to a simple callback, using
> python libglade :
> -----------------------------------------------------------------------
> Traceback (innermost last):
> File "/usr/lib/python1.5/site-packages/libglade.py", line 28, in
> __call__
> ret = apply(self.func, a)
> TypeError: too many arguments; expected 2, got 4
> ------------------------------------------------------------------------
>
> I couldn't find any good reason, and everything works fine with buttons
> and menu 'clicked' and windows 'destroy' events...
>
> Anyone having an idea?
> As it is my first attempts using pygtk + libglade (as well as Python in
> fact), i'm a bit lost for now,
> can it be a python libglade bug? Or a dirty beginner nonsense?
>
> I've attached offending .glade and .py files...
>
> Software versions :
> * Pygtk 0.6.2
> * libglade 0.6
> * libxml 1.7.2
> * glade 0.5.3
>
> My python version is the bare one which come with debian 2.0, is it
> 1.5.0 ?
>
> Xavier
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]