[Tutor] Saving GUIs
alan.gauld at btinternet.com
Tue Oct 9 19:14:24 CEST 2012
On 09/10/12 17:27, tayo rotimi wrote:
Please do not reply to an existing thread to create a new topic. Send a
fresh email to tutor at python.org. Using an existing one means your
messages get inserted amongst messages for the original thread making
them hard to find and follow the thread.
> I have started creating GUIs.
What are you using to create the GUIs? Which GUI library? Is it Tkinter,
wxPython or something else?
> But my current challenge now is saving the GUIs created.
What do you mean by saving the GUI? The GUI should normally be created
in a Python program file (aka a script) which you run from the console
(or in Windows by clicking on it in Windows explorer). To save the
program just save the file.
Are you using a development tool such as IDLE or pythonwin to create the
.py program file? If so which one?
> I have observed that whenever I close the console, the
> GUIs also get closed.
Which console are you talking about? The one where you started the
program? The one where you created the program? or the one that
sometimes starts when you start the GUI?
> So, please what do I need to do to save the GUIs,
> or call them back when next needed, if they don't actually get
> extinguished when the console is closed?
You need to rerun the program file, assuming you are creating one and
not just typing the commands into the >>> prompt.
If you are just typing them at the >>> prompt then you need to type them
into a file instead. Send a reply answering the questions above and we
will be in a better position to help you.
Author of the Learn to Program web site
More information about the Tutor