Key for stopping Python program (endless loop) - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Key for stopping Python program (endless loop) (/thread-16705.html) |
Key for stopping Python program (endless loop) - Dirk.nl - 04-20-2021 08:15 PM Hi all, I tested a very simple Python program, with input() and print() in a while 1==1 endless loop. Does any of you know with which key (or combinations) the program can be stopped and returns to the program editor. Okay, I have now done it with a paperclip reset, pfff RE: Key for stopping Python program (endless loop) - cyrille de brébisson - 04-21-2021 07:39 AM Hello, ON+Symb will also do a reset of the calc.. Then if you go back to num, make sure that you do not let the program run by cancelling the "import and run" message box! I will see if I can implement an "ON" detection that will raise a kbd exception Cyrille RE: Key for stopping Python program (endless loop) - Dirk.nl - 04-21-2021 08:16 AM Hi Cyrille, Thanks for your quick reply. ON+SYMB gave a reset, after the reset my “stupid” program was immediately restarted. An ON+another key would be perfect to terminate a program. RE: Key for stopping Python program (endless loop) - cyrille de brébisson - 04-22-2021 05:45 AM Hello, Press and hold backspace at boot time should avoid the program re-running at reboot. For the next version, I have added an ON key detection system... Cyrille RE: Key for stopping Python program (endless loop) - Dirk.nl - 04-22-2021 06:55 AM Cyrille, Thanks !! |