[Tutor] Menu data from file
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
> menudata.py, because then py2exe makes problems ...
> I would like to preserve list structure like:
Yes that's a good idea.
> ("&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),
> . . .
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?
Author of the Learn to Program web site
More information about the Tutor