Article 6GXGY How to stop a key from repeating?

How to stop a key from repeating?

by
Flexico
from LinuxQuestions.org on (#6GXGY)
I have my keyboard's calculator key bound to open a Python prompt; it works great except if the key is held down, I get spammed by 100+ python windows and twice I had to do a hard reboot to clear them out.
Is there a way to change my script or a setting somewhere to stop the key repeating?

Laptop: Dell Vostro 5590
OS: Linux Mint 21.2 64-bit

Python start command:
Code:export PYTHONSTARTUP="/home/flexico/Math/Python/python-start.py"
mate-terminal --working-directory="/home/flexico/Math/Python/Scripts" --title="Python 3" --geometry=70x32 --command python3
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments