title: Python Tkinter While Thread
body: <p>Well i am a bit of newb at python, and i am getting hard to make a thread in Tkinter , as you all know using while in Tkinter makes it Not Responding and the script still running.</p>
  
  <pre><code>  def scheduler():
      def wait():
          schedule.run_pending()
          time.sleep(1)
          return
      Hours = ScheduleTest()
      if len(Hours) == 0:
          print("You need to write Hours, Example: 13:30,20:07")
      if len(Hours) &gt; 0:
          print("Scheduled: ", str(Hours))
          if len(Hours) == 1:
              schedule.every().day.at(Hours[0]).do(Jumper)
              print("Will jump 1 time")
          elif len(Hours) == 2:
              schedule.every().day.at(Hours[0]).do(Jumper)
              schedule.every().day.at(Hours[1]).do(Jumper)
              print("Will jump 2 times")
          elif len(Hours) == 3:
              schedule.every().day.at(Hours[0]).do(Jumper)
              schedule.every().day.at(Hours[1]).do(Jumper)
              schedule.every().day.at(Hours[2]).do(Jumper)
              print("Will jump 3 times")
          while True:
              t = threading.Thread(target=wait)
              t.start()
      return
  scheduler()
  </code></pre>
  
  <p>i have tried to do something like this but it still makes tkinter not responding
  Thanks in advance.</p>