Pythonista-Issues icon indicating copy to clipboard operation
Pythonista-Issues copied to clipboard

Screen orientation not enforced by run()

Open keithrdavis opened this issue 4 years ago • 2 comments

Setting the following in the run method does not result in a locked orientation (example pulled from one of the games included with Pythonista):

run(Game(), PORTRAIT, show_fps=False)

Pythonista 3.3 executing with python 3.6 on iPad OS 13.4.1

keithrdavis avatar May 06 '20 03:05 keithrdavis

As of iOS/iPadOS 12, apps that support multitasking (SlideOver, etc.) are not allowed to lock the screen orientation. Since Pythonista is the app as far as the OS concerned, it can’t lock the screen without disallowing any usability in the multitasking modes.

treyharris avatar Jun 28 '20 18:06 treyharris

Thank you, execution of a script is tied to pythonista configuration at some level, sigh. Thanks again for the answer!

keithrdavis avatar Jun 28 '20 18:06 keithrdavis