[pygtk] not enough arguments?

Christopher Spears cspears2002 at yahoo.com
Sat Aug 5 09:58:28 WST 2006


Okay, I got the get_path function to print.  

Is there way to get return values?  I was hoping to be
able to write get_path and get_pattern functions and
then use these functions inside the glob_files
function.

My main problem is I am not sure how to get data from
the two text entry widgets into the glob_files
function.  Do you have any suggestions?

--- "Felix Rabe (public)"
<public at felixrabe.textdriven.com> wrote:

> Hi,
> 
> Christopher Spears wrote:
>  > def get_path(self, widget, entry, path):
> 
> Just remove the "path" argument.  Also, since it is
> a callback, you 
> won't ever see your return value again (it is just
> dismissed to 
> nowhere).  Either print base_path, or
> set_text(base_path) on a widget.
> 
> Greetings,
> Felix
> 



More information about the pygtk mailing list