[ Enhancement] Set focus to text input widget for popup_get_text(), get_file(), and get_folder()
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
まず、popup_get_text()、get_file()、get_folder() の tkinter 実装またはエントリーポイントを見つけ、各ダイアログがテキスト入力をどのように作成して初期化するかを調べます。提供されている popup_get_text() の例で期待される動作を確認し、他の動作を変更せずに、3つすべてのダイアログを開いたときに入力にフォーカスが当たれば作業完了とします。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 13.8k
- フォーク
- 1.8k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PySimpleGUI/PySimpleGUI のほかの issue
-
Bug Done - Install Dev Build (see docs for how) Platform Specific Issue - Linux Port - TK
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
PySimpleGUI/PySimpleGUI#6904 · コメント 15 件 ·
-
Bug Demo Programs Done - Install Dev Build (see docs for how) Interoperability Port - TK workaround available
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
PySimpleGUI/PySimpleGUI#6900 · コメント 1 件 ·
-
Done - Install Dev Build (see docs for how) enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
PySimpleGUI/PySimpleGUI#3251 · コメント 12 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
PySimpleGUI/PySimpleGUI#6906 · コメント 1 件 · リアクション 1 件 ·
-
Bug Done - Install Dev Build (see docs for how) Port - TK
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
PySimpleGUI/PySimpleGUI#6902 · コメント 1 件 ·
PySimpleGUI/PySimpleGUI の issue をすべて見る
似ている issue
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·