[Tutor] Saving GUIs
Hi, I have started creating GUIs. But my current challenge now is saving the GUIs created. I have observed that whenever I close the console, the GUIs also get closed. 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? I use Python 3.2 on windows 7. Regards. Tayo.___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Saving GUIs
On 10/09/2012 12:27 PM, tayo rotimi wrote: Hi, I have started creating GUIs. But my current challenge now is saving the GUIs created. I have observed that whenever I close the console, the GUIs also get closed. 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? I use Python 3.2 on windows 7. Regards. Tayo. First question is whether that console is desired in the first place. It may depend on which GUI library you're using (wx, tkinterf, ...) but Windows has a habit of requiring a console to be sitting around for each application, just in case it decides to display something on it. The usual workaround is to run PythonW.exe instead of Python.exe. One way to cause this is to rename the main script to have an extension of .pyw instead of .py , assuming the appropriate file associations exist. -- DaveA ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Saving GUIs
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@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. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor