So I'm trying to build a small app, and I really enjoy the Guizero package and it's easy, event-driven programming.
The only thing it seems to lack is a method to implement theme changes, so it looks really outdated at the moment. Is there a way to apply Tkinter packages or something?
Below is some code I've tried, and it even prints 'vista' out correctly, but it doesn't seem to implement the actual theme change.
from tkinter import *
from guizero import *
import tkinter.ttk as ttk
app = App(title="Application Name", layout="grid", height=200, width=600) # Random app name
app.tk.iconbitmap("someicon.ico") # I got this to work
s=ttk.Style()
#app.ttk.Style().theme_use('default')
print(s.theme_names()) # loads themes
print(s.theme_use()) # shows potential theme names ('winnative', 'clam', 'alt', 'default', 'classic', 'vista', 'xpnative')
s.theme_use('vista')
print(s.theme_use()) # prints 'vista'
app.style = s
print(app.style.theme_use()) # prints 'vista'
app.display()
This is not ttk but you can still style what you want.