[Bug?] [Solved] Menu not generating an event on latest Raspbian Pi4
まだ誰も着手していません。
評価
調査の方向性
Pi4 Bookworm 上で sg.Menu と window.read を使用する最小再現コードから始め、その動作を報告されている Ubuntu デスクトップでの動作と比較します。New User をクリックするとイベントが発生するか確認します。プラットフォーム固有の原因を特定して文書化するか、期待されるメニューイベントを復元できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Bug?
Operating System
bookworm on Pi4
glibc 2.36
3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]
PySimpleGUI 5.0.8
tkinter 8.6.13
Python version 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]
Your Experience In Months or Years (optional)
Years Python programming experience
20
Years Programming experience overall
40
Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
yes
Troubleshooting
These items may solve your problem. Please check those you've done by changing - [ ] to - [X]
- Searched main docs for your problem PySimpleGUI Documenation
- Looked for Demo Programs that are similar to your goal. It is recommend you use the Demo Browser! Demo Programs
- 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.com
- Have upgraded to the latest release of PySimpleGUI on PyPI (lastest official version)
- Tried running the Development Build. Your problem may have already been fixed but not released. Check Home Window for release notes and upgrading capability
- For licensing questions please email license@PySimpleGUI.com
Detailed Description
JUST A WHOLE LOT OF NOTHING returned on menu click.
Sub-menu pops up and goes away just fine, but no event generated.
Works OK on my Ubuntu desktop - just not here on my Pi4.
import PySimpleGUI as sg
layoutPRINT = [
[sg.Button('Print your TAB', disabled=False, key='-tab_print-')],
[sg.Button('and Finalize it', disabled=False, key='-tab_erase-')],
]
menu_def=[['New User',['Register']]]
layout=[
[sg.Menu(menu_def)],
[sg.Frame("", layoutPRINT)],
]
window = sg.Window('menu-play', [layout], finalize=True, keep_on_top=True)
while True:
event, values = window.read(timeout=100)
if event != sg.TIMEOUT_EVENT:
print(event)
if event == sg.WIN_CLOSED:
break
window.close()
- 主要言語
- 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 ·