Thanks. That gets the job done, though closing the main view doesn't close the background; I have to click on the X in the corner to do that. Not a big deal, but is there a way to close both when closing the main?
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Posts made by Involute
-
RE: Changing size in UI Designer isn't reflected when running script
-
RE: Changing size in UI Designer isn't reflected when running script
Got it. Thanks.
Is there any way to hide the script while it's running other than to make the view fill the screen? It's a little annoying to see the script behind my UI, and scaling up the UI would scale all its elements, too, making them bigger than I want.
-
Changing size in UI Designer isn't reflected when running script
If I change the size of the Calculator example in the Inspector panel and then run the script, the Calculator is the same size as before the change, even though going back to the Inspector shows the changes have been preserved. How do I get the change to carry through to the running script? Thanks.
-
Is it possible to copy a button or other UI widgets in the Designer?
Or do I have to make a new button/widget and copy the parameters from the original one?
-
RE: Question about modifying Calculator example
Thanks! I chose the second route and it worked great.
-
Question about modifying Calculator example
I’d like to create a script based on the supplied Calculator.py example. I can copy the example’s code to a new file, and I can create a new empty UI file, but I can’t figure out how to copy the designer file into it. Any tips? Is there another way I should be doing this?
-
RE: How to kill a script?
@JonB said:
Don't create infinite loops.
Well, I need to repeatedly request input from the user. How else can I do that except something like while(True)? I also use try/except since the input should only be a number and the user may enter a letter or something else by mistake. The user can enter 4 to exit, and that function issues a sys.exit(), but that has no effect.
-
RE: How to kill a script?
@mikael I can see the X at the top right, but when I tap on it nothing happens. Should have said that originally. I should add that I have the same problem in IDLE on my PC running the same script, so I assume it's a Python issue and not a Pythonista issue.
-
How to kill a script?
I have a script running in an infinite loop and I can't stop it short of closing Pythonista. On a PC I'd hit <CTL>C. Of course, that's not an option on an iPad. What's the routine? Thanks.
-
Storing data
Is there any way to store data (<1KB) from a Pythonista script running under iOS so it's available the next time the script is run? On a PC I could store it in a file, but that's not an option under iOS. Thanks for any tips.