[ Enhancement] Set focus to text input widget for popup_get_text(), get_file(), and get_folder()
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 45/100
Piste de recherche
Commencez par localiser les implémentations ou points d’entrée tkinter de popup_get_text(), get_file() et get_folder(), puis examinez comment chaque boîte de dialogue crée et initialise son champ de saisie de texte. Confirmez le comportement souhaité avec l’exemple fourni de popup_get_text() et considérez le travail comme terminé lorsque le champ de saisie reçoit le focus à l’ouverture des trois boîtes de dialogue, sans modifier leur autre comportement.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Type of Issue (Enhancement, Error, Bug, Question)
Enhancement
Operating System
All
PySimpleGUI Port (tkinter, Qt, Wx, Web)
tkinter
Versions
Python version (sg.sys.version)
3.11.3
PySimpleGUI Version (sg.__version__)
4.60.4
GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)
8.6.13
Your Experience In Months or Years (optional)
Years Python programming experience
5 years
Years Programming experience overall
30 years
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
Yes, several
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 www.PySimpleGUI.org
- Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demos.PySimpleGUI.org
- 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.org
- Have upgraded to the latest release of PySimpleGUI on PyPI (lastest official version)
- Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed but not released
Detailed Description
I have made several changes to the popup dialogs for my own use. I thought about sending a Pull Request but thought
I would mention it here first. One thing I prefer is to Push() the buttons and reverse Okay and Cancel buttons. I think I saw an option for this and It's not as important as my issue with popup_get_text, get_file, and get_folder.
These dialogs should have the input box focused so you can immediately start typing. I cannot think of any reason for it not to be in the popup_get_text() dialog at least, and don't see any issues with compatability.
Would appreciate peoples opinions on this. Would be happy to send a pull request. Delete this issue if you want.
Thanks
Code To Duplicate
N/A
This pre-formatted code block is all set for you to paste in your bit of code:
import PySimpleGUI as sg
sg.popup_get_text('Hello world\nHow are you?')
Screenshot, Sketch, or Drawing
Watcha Makin?
Right now I'm working on a tool to edit and maintain config files for the Pegasus retro game frontend, which also updates/alters/fixes windows shortcuts using pylnk3.
- Langage dominant
- Python
- Étoiles
- 13.8k
- Forks
- 1.8k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de PySimpleGUI/PySimpleGUI
-
Bug Done - Install Dev Build (see docs for how) Platform Specific Issue - Linux Port - TK
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
PySimpleGUI/PySimpleGUI#6904 · 15 commentaires ·
-
Bug Demo Programs Done - Install Dev Build (see docs for how) Interoperability Port - TK workaround available
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
PySimpleGUI/PySimpleGUI#6900 · 1 commentaire ·
-
Done - Install Dev Build (see docs for how) enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
PySimpleGUI/PySimpleGUI#3251 · 12 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 74/100
PySimpleGUI/PySimpleGUI#6906 · 1 commentaire · 1 réaction ·
-
Bug Done - Install Dev Build (see docs for how) Port - TK
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
PySimpleGUI/PySimpleGUI#6902 · 1 commentaire ·
Toutes les issues de PySimpleGUI/PySimpleGUI
Issues similaires
-
essnmx good first issue
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
-
[Feature] 奇物选择添加优先级 Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Giskard-AI/giskard-oss#2840 · 1 commentaire ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Ouvertearea: repo bug perceived difficulty: 2
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
yeti-platform/yeti#1380 ·