Skip to content Skip to sidebar Skip to footer

How To Install Python Ttk Themes

This is my first post on SO, so please feel free to correct me if I'm doing anything wrong! I am making a simple GUI for my Raspberry Pi (that runs Raspbian stretch) on Windows (be

Solution 1:

appJar's support for ttk is still in development, but you can try overriding the default style:

from ttkthemes import ThemedStyle
app = gui(useTtk=True)
app.ttkStyle = ThemedStyle(app.topLevel)
app.ttkStyle.set_theme("plastik")

This tells appJar to use ttk, but then replaces the style appJar is using, with the style you request.

Solution 2:

Have you imported their package? And according to their current docs, you check for themes basically by:

from ttkthemes import themed_tk as tk   
import ttk   #(might need to add tkinter. beforehand)
window = tk.ThemedTk()
window.get_themes()

Have you tried that method?

Post a Comment for "How To Install Python Ttk Themes"