TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: R.WIESER
date: 2019-12-16 12:48:00
subject: Python & thonny - how to

Hello all,

I'm currently using Thonny to write and execute my Python scripts in, and
would like to be able to exit a loop by me pressing a key or button
somewhere, so I can terminate the script graciously (run some cleaning-up
code).

Does Thonny offer any such thing  (apart from its way-too-crude "stop"
button I mean) ?

If not, is there any other way ?    Directly reading the keyboard directly
requires root, and I've not seen any kind of non-blocking(!) "OK" message
boxes.

Regards,
Rudy Wieser

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.