Python Forum
Button to stop while loop from another script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Button to stop while loop from another script
#5
I appreciate the reply. Yes i am currently using thread on script A to call api so when i use the stop button in script A it does work. However it does not stop the while loop on the thread that was running. I tried to import global variable to script B but receive error as script A imports the function from B that contains the global variable.
Reply


Messages In This Thread
RE: Button to stop while loop from another script - by Absolutewind - Sep-25-2023, 08:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] [Linux] Script in cron stops after first run in loop Winfried 2 1,005 Nov-16-2022, 07:58 PM
Last Post: Winfried
  How to break out of a for loop on button press? philipbergwerf 6 1,902 Oct-06-2022, 03:12 PM
Last Post: philipbergwerf
  non-stop ping script kucingkembar 1 1,421 Aug-23-2022, 06:29 AM
Last Post: menator01
  get out of while loop and stop repeat Frankduc 11 3,187 Apr-26-2022, 10:09 PM
Last Post: deanhystad
  Script stop work after 3 actioins - PLEASE WHERE IS THE PROBLEM? rondon442 0 1,607 Sep-27-2021, 05:40 PM
Last Post: rondon442
  how to loop a script? ZYSIA 1 2,076 Jul-22-2021, 06:46 AM
Last Post: Gribouillis
  Stop/continue While loop block Moris526 68 26,822 Mar-28-2021, 09:21 PM
Last Post: Larz60+
  Using a button to kill and restart a script duckredbeard 3 3,422 Sep-01-2020, 12:53 AM
Last Post: duckredbeard
  How can I stop the script when I run the game on my own computer? StatTark 2 2,311 Jun-19-2020, 11:20 AM
Last Post: StatTark
  for loop script over telnet in Python 3.5 is not working abhijithd123 1 2,962 May-10-2020, 03:22 AM
Last Post: bowlofred

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020