TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: R.WIESER
date: 2020-02-16 08:41:00
subject: Re: Starting a Python scr

Dennis,

> Probably not helpful... Especially for the modifier keys

Duh...  I just tested both a character and a modifier key (something I
should have done earlier).   The first threw a number of repeated keydowns,
the latter didn't.   Can even understand why.    It certainly does throw a
wrench in my "start script while having a modifier key down" idea though.

I could ofcourse use one of the character keys, but that could have side
effects, as Thonny has already shown me. When I pressed space directly after
having clicked the "run" button, the button behaved as having been clicked
again.  Which is not quite unsuspected ofcourse.

No, I don't think I'm going to use one of the "real" keys as a modifier.

> From Tkinter source
...
> Note the list of those considered MODIFIER and not DETAIL.

I'm afraid that I just understand part of it, and only because I've found
(and used) example code for that command.    You seem to be indicating that
"detail" might be of use for me ?    Can you tell how ?

The best I can currently think of is to have the script show a timed window
when its started, at which moment I have to either press or release a
modifier (or even character) key.  Not really user-friendly.

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™.