`drop_whitespace` argument only present for basic popup
还没有人认领这个 Issue。
评估
调研方向
Locate the listed popup helper functions, including popup_yes_no and popup_ok, and inspect how each calls the basic popup. Add the optional argument consistently to the relevant helpers, then verify that passing drop_whitespace=False preserves surrounding whitespace in each text-based popup.
由索引模型根据 Issue 内容生成。
描述
Hi,
I'm trying to use a yes/no popup with some whitespace surrounding the text (in order to make the popup title fully visible in all cases, regardless of popup text length). But the popup trims the whitespace.
The drop_whitespace parameter is only available for the basic popup, not for the other text-based popups (e.g. popup_yes_no).
A simple workaround is to use popup(button_type=POPUP_BUTTONS_OK_CANCEL, drop_whitespace=False), I wonder how you feel about adding the drop_whitespace parameter to the other relevant functions?
I can do the work and raise a PR if it's a good idea.
I think the relevant functions are any that just make a call to popup:
popup_non_blocking, popup_quick, popup_quick_message, popup_no_titlebar, popup_auto_close, popup_error, popup_cancel, popup_ok, popup_ok_cancel and popup_yes_no.
- 主要语言
- Python
- 星标
- 867
- 派生
- 106
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 2
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
spyoungtech/FreeSimpleGUI 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
spyoungtech/FreeSimpleGUI#109 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
spyoungtech/FreeSimpleGUI#86 · 1 条评论 · 2 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 58/100
spyoungtech/FreeSimpleGUI#101 · 8 个 reaction ·
-
难度 5/5 一周以上 新手友好度 35/100
spyoungtech/FreeSimpleGUI#99 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 20/100
spyoungtech/FreeSimpleGUI#95 ·
查看 spyoungtech/FreeSimpleGUI 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
solana-foundation/pay-kit#341 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
nasa/python_cmr#123 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
EleutherAI/lm-evaluation-harness#4243 ·
维护者通常 1 天内回复
-
area: dashboard bug perceived difficulty: 3
难度 2/5 1-3 小时 新手友好度 88/100
Nitjsefnie-Harness-Commons/daedalus#1179 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
cusp-ai-oss/tojax#17 ·