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

Button lost it's style after first run #544

Open
Archertheone opened this issue Feb 29, 2024 · 0 comments
Open

Button lost it's style after first run #544

Archertheone opened this issue Feb 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Archertheone
Copy link

Desktop (please complete the following information):

ttkbootstrap Version: 1.10.1
OS:windows 10

Describe the bug

I tried to run the following demo code in a jupyter notebook:

import ttkbootstrap as ttk
from ttkbootstrap.constants import *

root = ttk.Window()

b1 = ttk.Button(root, text="Solid Button", bootstyle=SUCCESS)
b1.pack(side=LEFT, padx=5, pady=10)

b2 = ttk.Button(root, text="Outline Button", bootstyle=(SUCCESS, OUTLINE))
b2.pack(side=LEFT, padx=5, pady=10)

root.mainloop()

It works well in the first run:
first_run

However, after I click the close button and rerun the demo, the buttons lost their styles.
second_run

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

Additional context

No response

@Archertheone Archertheone added the bug Something isn't working label Feb 29, 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