[Enhancement] Focus first button in popup() calls
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- accessibility, desktop
Rechercherichtung
Beginne damit, die popup()-Hilfsfunktionen zu finden, insbesondere popup_ok(), sowie die im Issue erwähnte tkinter-Implementierung. Verfolge, wie Popup-Schaltflächen erstellt und fokussiert werden, und überprüfe anschließend, dass eine Option focus_first_button bei den relevanten Popup-Aufrufen die erste Schaltfläche fokussiert, ohne das Standardverhalten zu ändern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Type of Issue (Enhancement, Error, Bug, Question)
Enhancement
Environment
Operating System
Windows version ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
PySimpleGUI Port (tkinter, Qt, Wx, Web)
tkinter
Versions
Python version (sg.sys.version)
3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
PySimpleGUI Version (sg.__version__)
4.61.0.198
GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)
8.6.12
Your Experience In Months or Years (optional)
2 Years Python programming experience
10 Years Programming experience overall
Yes 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
When using the popup() calls, it would be really nice if there was a way to focus the first button by default.
I encountered this when checking for some input and creating popups if they were malformed. It's really annoying always having to touch the moouse or try tabbing through the popup if it only contains text and one button.
Something like the following would be enough:
sg.popup_ok('text', title='title', focus_first_button=True)
- Vorherrschende Sprache
- Python
- Sterne
- 13.8k
- Forks
- 1.8k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus PySimpleGUI/PySimpleGUI
-
Bug Done - Install Dev Build (see docs for how) Platform Specific Issue - Linux Port - TK
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
PySimpleGUI/PySimpleGUI#6904 · 15 Kommentare ·
-
Bug Demo Programs Done - Install Dev Build (see docs for how) Interoperability Port - TK workaround available
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
PySimpleGUI/PySimpleGUI#6900 · 1 Kommentar ·
-
Done - Install Dev Build (see docs for how) enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
PySimpleGUI/PySimpleGUI#3251 · 12 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 74/100
PySimpleGUI/PySimpleGUI#6906 · 1 Kommentar · 1 Reaktion ·
-
Bug Done - Install Dev Build (see docs for how) Port - TK
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
PySimpleGUI/PySimpleGUI#6902 · 1 Kommentar ·
Alle Issues in PySimpleGUI/PySimpleGUI
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
-
🐛 Bug 🔔 Pending processing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
jumpserver/jumpserver#17584 ·