PySimpleGUI / PySimpleGUI/PySimpleGUI
[Enhancement ] popup enhancement so that titles are fully shown when windows are small
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 13.8k
- フォーク
- 1.8k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Type of Issue (Enhancement, Error, Bug, Question)
Question, maybe an enchancement?
Operating System
All
PySimpleGUI Port (tkinter, Qt, Wx, Web)
tkinter
Versions
Python version (sg.sys.version)
3.9.7
PySimpleGUI Version (sg.__version__)
4.59.0
Your Experience In Months or Years
Years Python programming experience
2
Years Programming experience overall
4
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
no
Anything else you think would be helpful?
no
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 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
- Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed but not released
Detailed Description
Firstly, I love psg!
So the thing is: Popups are building a Window with every arg each popup have, it builds it in line ~18634 of PySimpleGUI.py, and Window does have an size(x, y) argument, so not using it in popups are a design choice?
I'm messing around with some popups and if I print something really small, the title bar hides, if I could set the size to be a bit bigger, the popup would look nicer.
I know it's easy to create a popup using the same method as the popup function does, but I was wondering why it does not have the size arg.
Ty!
Code To Duplicate
from PySimpleGUI import popup_ok
popup_ok('Done', title="My app title") # does not show title :(
popup_ok(f'Done\n{"."*50}', title="My app title") # the title shows :)
Screenshot, Sketch, or Drawing


forcing a size arg in popup function:

Watcha Makin?
I'm migrating some popups from pymsgbox to PySimpleGUI popups, and some texts are so small that the popup not shows the title.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
PySimpleGUI.py の ~18634 行付近で、ポップアップが Window を構築している箇所から始め、popup_ok のエントリーポイントを追ってください。Issue にある 2 つの popup_ok の例を再現し、その後、既存のポップアップの動作を維持したまま、短いメッセージでも完全なタイトルが表示されることを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- desktop
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100