ttk.tkinter.Notebook does not refresh notebook page on Mac unless mouse moves out of tab area
オープン
まだ誰も着手していません。
OS-mac
stdlib
topic-tkinter
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Bug description:
Test Code:
from tkinter import *
from tkinter.ttk import Notebook
mw = Tk()
mw.title("Notebook Test")
mw.geometry(f"{800}x{800}")
main_page_frame = Frame(mw, borderwidth=1, relief='ridge')
main_page_frame.pack(side='top', expand=1, fill='both')
notebook = Notebook(main_page_frame)
notebook.pack(expand=1, fill='both')
for info in ("one", "two", "three"):
frame = Frame(mw)
Label(frame, text=info).pack()
notebook.add(frame, text=info)
mw.mainloop()
Test Computer
MacOS Sequoia: Version 15.3.1
Problem
prepare
Click on the three tabs, one after another. The behaviour is what one would expect
execution
- carefully click on a new tab... but don't move the mouse once you have clicked
problem
- the notebook page does not refresh (i.e. you won't see the label within the notebook)
- if you move the mouse carefully just within the tab name area, nothing happens
- if you move the mouse outside of this area, the label will suddenly appear.
Note
Tried this on a windows machine, and the behaviour as it should be, so this problem seems to be a MAC problem (don't have a linux machine so can't try there).
According to the documentation, the MAC python 3.13 has its own version of Tcl/Tk, so maybe this is a Tcl/Tk problem, and not a python problem?
CPython versions tested on:
3.13
Operating systems tested on:
macOS
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、macOS Sequoia で Python 3.13 を使用して提供された Notebook の例を実行し、タブをクリックしたときの動作を Windows と比較します。tkinter Notebook の実装と、レポートで言及されている macOS Tcl/Tk の動作を読んでください。タブを選択すると、マウスをタブ領域の外へ移動しなくても、そのページが直ちに表示されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- desktop
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100