Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[ Enhancement] Set focus to text input widget for popup_get_text(), get_file(), and get_folder()

オープン
#6,533 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
desktop, frontend

調査の方向性

まず、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 はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PySimpleGUI/PySimpleGUI のほかの issue

PySimpleGUI/PySimpleGUI の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。