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.


    Phone Call

    Pythonista
    3
    3
    3965
    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.
    • NoBetterName
      NoBetterName last edited by

      Can Pythonista make a phone call? I prefer to do this in my app, not loading the phone app.

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

        Kinda. While there is no API to make a phone call, you can use the webbrowser module to open a tel:PHONE_NUMBER url. This will show a dialog, asking for confirmation to initiate the call. This should work for you since, when the call ends, you automatically return to Pythonista.

        For example, this code makes a call to Amazon Germany:

        import webbrowser
        webbrowser.open('tel:+49-800-2629663')
        
        1 Reply Last reply Reply Quote 0
        • bode_lothar
          bode_lothar last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors