I'm having trouble applying the bootstyle for widgets in the ttkbootstrap module. The first time I run the code after restarting my IDE (Spyder), there seems to be no problem. Yet, the next times I run the code, my ttkbootstrap widgets have the default theme.
Here is my main.py code:
import ttkbootstrap as tb
root = tb.Window()
root.title("Test")
root.geometry('500x500')
#Label
myLabel = tb.Label(root, text = "Test2", font=("Helvetica",20),bootstyle = 'danger')
#Button
myButton = tb.Button(root, text = "Test3", bootstyle = "danger")
myLabel.pack(pady = 50)
myButton.pack(pady = 20)
root.mainloop()
I've noticed there is zero information about this particular problem.