On Tue, 27 Mar 2001, berger patrick wrote:
> Hi all,
>
> i have a little problem with signal function
>
> i have this in a window class :
> ok_button.connect("button_press_event", ok_clicked(entry))
First of all, you probably want to connect the function ok_clicked, rather
than the return value (which would be None in this case) from calling it :)
>
>
> and the function :
>
> def ok_clicked(ancestor):
> text = GtkEditable.get_chars(ancestor, 0, -1)
Here, why don't you just use ancestor.get_chars() directly?
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk