You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this happens because the ttkbootstrap Style singleton isn't reset when the window is destroyed, and tries to use the same window that was already destroyed. You can fix this by setting ttkbootstrap.Style.instance = None before recreating the new window. My PR fixes it, but who knows when it'll go in?
Desktop (please complete the following information):
ttkbootstrap Version [e.g. 1.10.1]
OS: [e.g. Windows]
Describe the bug
I ran a simple app and am receiving bg error when I exit the program.
To Reproduce
A No Frills superhero theme
from tkinter import *
from ttkbootstrap.constants import *
import ttkbootstrap as tb
root = tb.Window(themename = "superhero")
root.title("TTK Bootstrap!")
root.geometry('500x350')
root.mainloop()
Expected behavior
When I exit the program, I do not expect this behavior.
Screenshots
The application runs fine
The application when exited, producing the following error:
Additional context
No response
The text was updated successfully, but these errors were encountered: