[Tutor] Menu data from file
Alan Gauld
alan.gauld at btinternet.com
Sun Apr 4 19:05:50 CEST 2010
"Neven Gorsic" <neven.gorsic at gmail.com> wrote
> I would like to import menu data from external txt file, but not as
> import
> menudata.py, because then py2exe makes problems ...
> I would like to preserve list structure like:
Yes that's a good idea.
> (("File",
> ("&New\tCtrl+N", "Create new blank script", self.onNew),
> ("&Open\tCtrl+O", "Opens call script", self.onOpen),
> ("","",""),
> ("&Save\tCtrl+S", "Saves call script", self.onSave),
> . . .
>
> Thanks,
You're welcome.
Or do you have a problem with implementing it?
If so what? What did you try? What happened?
Oh, and it will help to tell us which GUI toolkit
you are using too?
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list