ttk.tkinter.Notebook does not refresh notebook page on Mac unless mouse moves out of tab area
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách chạy ví dụ Notebook được cung cấp trên macOS Sequoia với Python 3.13 và so sánh hành vi khi nhấp vào tab với Windows. Đọc phần triển khai của tkinter Notebook và hành vi của macOS Tcl/Tk được đề cập trong báo cáo. Được coi là hoàn tất khi việc chọn một tab hiển thị trang của tab đó ngay lập tức mà không cần di chuyển chuột ra ngoài vùng tab.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- desktop
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100