omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Airplane mode

    Pythonista
    airplane mode
    4
    7
    2675
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • afh1012
      afh1012 last edited by

      Hi all, anybody know how to turn on airplane mode in pythonista?

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @afh1012 last edited by

        @afh1012

        1. create a shortcut, named AirPlaneEnable, containing only one command "enable AirPlane"
          See shortcut

        2. run script

        import webbrowser
        url = 'shortcuts://run-shortcut?name='AirPlaneEnable'
        webbrowser.open(url) 
        
        1 Reply Last reply Reply Quote 1
        • afh1012
          afh1012 last edited by

          Wow I can point to shortcuts ... thatโ€™s very nice

          Thanks a lot !

          Best

          Ahmed

          1 Reply Last reply Reply Quote 0
          • mc_py
            mc_py last edited by

            syntax error line 2

            stephen 1 Reply Last reply Reply Quote 0
            • stephen
              stephen @mc_py last edited by stephen

              @mc_py said:

              syntax error line 2

              import webbrowser
              url = 'shortcuts://run-shortcut?name=AirPlaneEnable'
              webbrowser.open(url)
              

              then to add just incase... inside shortcuts

              pic

              cvp 1 Reply Last reply Reply Quote 0
              • cvp
                cvp @stephen last edited by

                @stephen oups and Thanks

                stephen 1 Reply Last reply Reply Quote 0
                • stephen
                  stephen @cvp last edited by

                  @cvp said:

                  @stephen oups and Thanks

                  no problem ๐Ÿ˜Ž๐Ÿค“

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB Forums | Contributors