Example #1
0
def drawUserInterfaceThread():
    global running
    Console.clearscreen()
    while running:
        drawUserInterface()
        time.sleep(0.25)
Example #2
0
            drawUserInterface()

        if key == "-":
            threads[-1].stop()
            threads.pop()
            drawUserInterface()

        if key == "P":
            for thread in threads:
                thread.pause()

        if key == "R":
            for thread in threads:
                thread.resume()

        if key == "Z":
            deltaMin = -1
            deltaMax = -1

        if key == "Q":
            running = False
            uiThread.join()
            console.nonBlockStop()
            console.clearscreen()
            print("Waiting for threads to exit....")

            for thread in threads:
                thread.stop()

            print("Thankyou! Come again!")