GetPath to variable
kyosohma at gmail.com
kyosohma at gmail.com
Wed Dec 12 09:18:16 EST 2007
On Dec 11, 5:42 am, "Connolly" <cho.hat... at gmail.com> wrote:
> Hey there, new Python user here.
>
> Currently, I'm working on a project in Python for my college work, I chose
> to use Python since I heard of its great advantages, now for designing GUI's
> I'm using the wxPython package.
> What I'm trying to do at the moment is the following;
> A file directory browser is created using self.dialong.ShowModal, when the
> user chooses the folder they want to use for this program, then
> 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.
>
> Thanks,
>
> - Connolly
Gabriel is correct. It needs the () at the end. Download the wxPython
demo as it shows the basic usage of most of the widgets, including the
FileDialog.
Mike
More information about the Python-list
mailing list