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.


    [FYI]Notifications msg param seems to be able to take a lot

    Pythonista
    notifications
    1
    1
    1110
    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.
    • Phuket2
      Phuket2 last edited by

      This is sort of nothing. I had assumed that the notification.schedule message param would be very limited in length. I was just fooling around and got shocked. It seems to handle a lot. My test below does 100,000 + 3 chars as a message.

      Again, it's not a big deal. I just thought it would be very limited. To my surprise it's not

      import ui
      import notification
      str = 'a' * 100000
      str = str + 'xxx'
      notification.schedule(str ,delay = 60)
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB Forums | Contributors