[Bug] `grab_anywhere_using_control` feature is interfering with control+arrow keys
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Riproduci il problema con un programma PySimpleGUI minimale usando grab_anywhere_using_control=True e i tasti Control+Arrow, quindi individua l’implementazione di questa opzione della finestra. Confronta il comportamento con l’opzione disabilitata e verifica che il trascinamento della finestra continui a funzionare senza interrompere la normale navigazione del testo con Control+Arrow.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Type of Issue (Enhancement, Error, Bug, Question)
Bug
Environment
Operating System
Linux version ('glibc', '2.35')
PySimpleGUI Port (tkinter, Qt, Wx, Web)
tkinter
Versions
Python version (sg.sys.version)
3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
PySimpleGUI Version (sg.__version__)
4.61.0.163
GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)
8.6.12
Your Experience In Months or Years (optional)
Years Python programming experience
Years Programming experience overall
No Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
Troubleshooting
These items may solve your problem. Please check those you've done by changing - [ ] to - [X]
- Searched main docs for your problem www.PySimpleGUI.org
- Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demos.PySimpleGUI.org
- 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.org
- Upgraded to the latest official release of PySimpleGUI on PyPI
- Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed but not released
Detailed Description
The (grab_anywhere_using_control=) feature in the window object is causing contro+arrow keys to grab and move the window down. No matter which arrow key is pressed while holding down control, the wondow moves down an increment for every contro+arrow keypress. Turning the feature off with (grab_anywhere_using_control=False),stops the problem and the control+arrow keys resume their normal text editing navigation functions (next/prior word, next/prior paragraph).
A work-around is to turn the feature off and use the Alt+mouse click to grab and move the window (which works fine). But I assume this is a bug since normally people would want to preserve normal editing functions even if the control+mouse click is used to grab and move (duplicating with alt+mouse click). Even the demo program has this problem.
Code To Duplicate
# Paste your code here
# ANY code illustrates this bug. Just run anything and try the control+arrow keys.
Screenshot, Sketch, or Drawing
- 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
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anthropics/skills#1811 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
speaches-ai/speaches#678 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
datalayer/mcp-compose#42 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
UKGovernmentBEIS/inspect_evals#2523 ·