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.


    Display the number of active threads in the status bar

    Pythonista
    2
    3
    1863
    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.
    • cvp
      cvp last edited by cvp

      • little script to start a thread to display permanently the number of active threads in the status bar of Pythonista
      • I wrote this script because some of my scripts, using multi-threads, sometimes let a thread still active even when the script is ended, with its UI closed, and I didn't remark it...
      • the script can be run or launched via the tools or in the Pythonista_startup
      • tapping on the number displays a little popover window with the names of the threads
      • in this popover, you can close this window (x-button) or end the thread it-self (end-button)

      script is here

      Edit: between the two screen shots a new thread has started, that explains the "8" and the 9 active threads...

      mikael 1 Reply Last reply Reply Quote 2
      • mikael
        mikael @cvp last edited by

        @cvp, you are on a roll! I think I will have a use for this soon. What does it say after Pythonista has just started?

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

          @mikael

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