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.


    When I run my script Pythonista crashes

    Pythonista
    help sound bug crash notification
    2
    3
    2446
    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.
    • Rizey
      Rizey last edited by Rizey

      I am using an iPhone 7 on version 12.1.4. I tried to make a script that would tell me how much time is left in my class period and then using the notification module display it and the sound module too but when I run it Pythonista just closes. Here is my script: https://github.com/Riz3y/School-Stuff/blob/master/Period Time

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

        the new notification module expects a string first argument (and apparently doesnt check this for you)

        try

        notification.schedule(str(timeleft),0,sound=None)
        

        as an aside, if you just want to pop up a dialog, consider console.alert.

        1 Reply Last reply Reply Quote 1
        • Rizey
          Rizey last edited by

          Thank you for the info

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