Closed Akuli closed 7 years ago
Now style.theme_use() can be also called without any arguments to check which theme is currently being used. Previously this worked with plain ttk, but not with ttkthemes:
style.theme_use()
>>> from tkinter import ttk >>> import ttkthemes >>> ttk.Style().theme_use() 'default' >>> ttkthemes.ThemedStyle().theme_use() Traceback (most recent call last): ... TypeError: set_theme() missing 1 required positional argument: 'theme_name' >>>
Is there anything else you want me to add or is the PR ready for merging?
Oops, I clicked the wrong button and closed this accidentally.
As you can see, not all code I write is :hankey: :D
Now
style.theme_use()
can be also called without any arguments to check which theme is currently being used. Previously this worked with plain ttk, but not with ttkthemes: