Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebook tab content doesn't proper update on MacOS #555

Open
netaddict opened this issue Mar 30, 2024 · 0 comments
Open

Notebook tab content doesn't proper update on MacOS #555

netaddict opened this issue Mar 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@netaddict
Copy link

netaddict commented Mar 30, 2024

Desktop (please complete the following information):

Latest Python 3.12.2 with latest ttkbootstrap on MacOS 14.4 (tested on M1 and x86). On Windows 11 everything works like expected.

Describe the bug

When creating a Nootebook element, with tabs the content of the tab stays empty until you leave the tab title with the mouse.

To Reproduce

Run the test code on MacOS:

import ttkbootstrap as ttkb

app = ttkb.Window(title="Test-App", themename="solar", resizable=(True, True), size=[300,200])
gui_notebook = ttkb.Notebook(app)
gui_notebook.pack(side="right", anchor="nw", expand=True, fill="both", pady=5, padx=5)
tab0 = ttkb.Frame(gui_notebook)
tab1 = ttkb.Frame(gui_notebook)
tab2 = ttkb.Frame(gui_notebook)
tab3 = ttkb.Frame(gui_notebook)
tab4 = ttkb.Frame(gui_notebook)
gui_notebook.add(tab0, text="Tab 0")
gui_notebook.add(tab1, text="Tab 1")
ttkb.Label(tab0, text="Some Text").pack(anchor="center", pady=20)
ttkb.Label(tab1, text="Other Text").pack(anchor="center", pady=20)
app.mainloop()

Click on Tab 1 heading and then click on Tab 0 heading and stay in the heading with the mouse pointer.

Expected behavior

The content should be displayed when clicked on the heading.

Screenshots

Click on heading to activate Tab 1:
Bildschirmfoto 2024-03-30 um 19 15 41

Click on heading to activate Tab 0 -> no content:
Bildschirmfoto 2024-03-30 um 19 15 57

Leave the heading with mous pointer -> content appears:
Bildschirmfoto 2024-03-30 um 19 16 10

Additional context

No response

@netaddict netaddict added the bug Something isn't working label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant