GetPath to variable

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Dec 11 22:39:26 EST 2007


En Tue, 11 Dec 2007 09:01:30 -0300, Bruno Desthuilliers  
<bruno.42.desthuilliers at wtf.websiteburo.oops.com> escribi�:

> Connolly a écrit :
>> Hey there, new Python user here.
>> [...] self.dialong.GetPath is created, after this it (would) goes into  
>> a variable
>> and is stored in a config file I'm creating using the ConfigObj module.
>> My problem here is GetPath does not want to be stored in some kind of
>> variable, is there a specific method to put this string into a variable  
>> to
>> store in the config file.
>
> Could you please post the minimal working code reproducing your problem?
> And the full traceback if any ? Else we can only try to guess...

Just guessing, are you sure you are *calling* the method?  
self.dialog.GetPath()
The () are required in Python to actually call a function, else you simply  
get a reference to the function itself.

-- 
Gabriel Genellina




More information about the Python-list mailing list