[Bug] Keyboard spontaneously stops entering text into PSG fields
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
Il report riguarda il port tkinter di PySimpleGUI su Python 3.9.18 e tkinter 8.6.10 in Alma Linux 9; inizia riproducendo la perdita intermittente degli eventi della tastiera di sg.Input usando il listener descritto e la registrazione degli eventi. Il lavoro sarà considerato completato quando sarà identificato un trigger affidabile e sarà confermata una correzione con il comportamento della GUI segnalato; non viene fornito alcun programma duplicato, quindi la riproduzione rimane il primo blocco.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Type of Issue (Enhancement, Error, Bug, Question)
Bug
Operating System
Alma Linux 9
PySimpleGUI Port (tkinter, Qt, Wx, Web)
tkinter
Versions (NOTE - PSG4 is no longer supported)
Python Interpeter: /usr/bin/python3
Python version: 3.9.18
Platform: Linux
Platform version: ('glibc', '2.34')
Port: PySimpleGUI
tkinter version: 8.6.10
PySimpleGUI version: 5.0.6
Priority Support Code (Commercial License Users)
n/a
Your Experience In Months or Years (optional)
Years Python programming experience: 8
Years Programming experience overall: 9
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine) yes
Anything else you think would be helpful?
Troubleshooting
These items may solve your problem. Please check those you've done by changing - [ ] to - [X]
- Searched main docs for your problem PySimpleGUI Documenation
- Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demo Programs
- None of your GUI code was generated by an AI algorithm like GPT
- If not tkinter - looked for Demo Programs for specific port
- For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
- Run your program outside of your debugger (from a command line)
- Searched through Issues (open and closed) to see if already reported Issues.PySimpleGUI.com
- Have upgraded to the latest release of PySimpleGUI on PyPI (lastest official version)
- Tried running the Development Build. Your problem may have already been fixed but not released. Check Home Window for release notes and upgrading capability
- For licensing questions please email license@PySimpleGUI.com
Detailed Description
I am running a GUI in Alma Linux 9 that interfaces with several classes I have written, which interface with several external systems. Sometimes, after the GUI has been in use for a bit, the keyboard spontaneously stops working. I have not been able to understand what causes this, nor been able to predict the issue. The keyboard still works in other windows, and I can still interact with the GUI in other ways (pressing buttons, etc.), so I believe it is an issue between PSG and the keyboard. I recently upgraded the operating system of the PC from Centos 7 to Alma 9; in Centos 7 this issue was not observed, and the code has not changed.
In debugging this, I have added enable_events=True to a few of the text boxes and told the GUI to print every event it sees. I have also added the following block which runs a keyboard listener while the GUI event loop runs:
from pynput import keyboard
def on_press(key):
try:
print('alphanumeric key {0} pressed'.format(
key.char))
except AttributeError:
print('special key {0} pressed'.format(
key))
def on_release(key):
print('{0} released'.format(
key))
if key == keyboard.Key.esc:
# Stop listener
return False
listener = keyboard.Listener(
on_press=on_press,
on_release=on_release)
listener.start()
When the keyboard issue I am discussing occurs, the events generated by buttons and checkboxes still appear in the terminal output, but no events generated by sg.Input fields show up. However, the listener I pasted above still prints all key presses and releases that occur while the GUI window is in focus, but no text is entered into the GUI and no sg.Input events appear.
Code To Duplicate
I have not been able to understand nor isolate the issue, so I am not sure I can give duplication code. I know how helpful that is, but I am running out of ideas for how to solve this.
Thanks for any help you can provide!
- Lingua principale
- Python
- Stelle
- 13.8k
- Fork
- 1.8k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PySimpleGUI/PySimpleGUI
-
Bug Done - Install Dev Build (see docs for how) Platform Specific Issue - Linux Port - TK
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
PySimpleGUI/PySimpleGUI#6904 · 15 commenti ·
-
Bug Demo Programs Done - Install Dev Build (see docs for how) Interoperability Port - TK workaround available
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
PySimpleGUI/PySimpleGUI#6900 · 1 commento ·
-
Done - Install Dev Build (see docs for how) enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
PySimpleGUI/PySimpleGUI#3251 · 12 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 74/100
PySimpleGUI/PySimpleGUI#6906 · 1 commento · 1 reazione ·
-
Bug Done - Install Dev Build (see docs for how) Port - TK
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
PySimpleGUI/PySimpleGUI#6902 · 1 commento ·
Tutte le issue di PySimpleGUI/PySimpleGUI
Issue simili
-
essnmx good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
[Feature] 奇物选择添加优先级 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Giskard-AI/giskard-oss#2840 · 1 commento ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Apertaarea: repo bug perceived difficulty: 2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yeti-platform/yeti#1380 ·