Search code examples
pythonpython-3.xkivykivy-language

Is there a way to turn off rotation of the screen in kivy


I'd like to ask, if there's any way to turn off rotation of the screen in kivy or eventually in another module?


Solution

  • When you are deploying your app to a smartphone, you are able to configure the rotation settings in the buildozer.spec file. This would be the line you are looking for.

    # (str) Supported orientation (one of landscape, portrait or all)
    orientation = portrait