Questions tagged [ttkthemes]

A group of themes for the ttk extenstions for Tkinter created by various authors.

ttkthemes supports the creation of custom themes based upon static themes during runtime. This is called dynamic theming. The functions to create dynamic themes are implemented in the ThemedWidget class. PNG-based theme support is required to apply a dynamic theme.

14 questions
1
vote
1 answer

Python Classes, using ttk.Style() in multiple classes using tk.TopLevel

I am using python 3.11.3 in Visual Studio. I am trying to use ttk style in multiple gui's, but it only works in the first tk.TK Main. I've edited the main code for this forum, the below is still representative of the program. import configparser …
1
vote
0 answers

Frames in TKinter Bootstrap

I am trying to create a frame in my window using Tkinter Bootstrap - I can't see it appearing, although the text does show up. From what I can see from the demo, the frame should be a slightly lighter colour. Am I doing this right? import…
1
vote
0 answers

How to find all style options for ttk widgets?

I want to see what all options I can modify on a ttk widget. I used the style.layout() method but I am not sure if all the options are being printed. I want to change ttk.Labelframe label fg and bg but I can not see any of those options in the…
KeyShoe
  • 84
  • 7
1
vote
0 answers

Use ttk theme in pyinstaller's onefile mode and can't execute

As title, I used ttk in pyinstaller's onefile mode and can't execute because I include a a01.tcl file,and this file had the following codes: source theme/a02.tcl source theme/a03.tcl proc set_theme {mode} { if {$mode == "a02"} { …
1
vote
2 answers

Is there a way in Tkinter to left-align tabs (Notebook)?

I use ttk.Notebook to create different tabs. The notebook is placed on the left side. The labels in the tabs should not be aligned to the right, but to the left. Can this be configured? Right-aligned tabs: Code Snippet: import tkinter as tk from…
0
votes
1 answer

How to use the Sun Valley Dark Theme but change the font size?

I want to use the Sun Valley Dark theme sv_ttk.set_theme("dark") However, I want to change the fonts, possibly by using a style @staticmethod def getStdFont(): return Font(family="Courier", size=16) stdFont = getStdFont() s =…
0
votes
0 answers

ModuleNotFoundError: No module named '_tkinter' in Python 3.11.4

Im getting this error when i try to install ttkthemes on python3.11.4. I updated python from 3.6.9 nad now i cant download ttkthemes. I get the error ModuleNotFoundError: No module named '_tkinter' I tried sudo apt-get install python3-tk but it…
Latif
  • 9
  • 3
0
votes
0 answers

How to use a theme on all windows in Tkinter

I'm making a GUI in Tkinter and want the sun valley theme (https://github.com/rdbende/Sun-Valley-ttk-theme) to effect all my windows. When I run my code only the first window in this case the Test class has the theme, when I click the button and run…
OttoLuck
  • 31
  • 7
0
votes
1 answer

Layouts from used theme not available in class App(tk.Tk) but works in plain tk.Tk

I use a theme called "forest-light", implemented as suggested from its author on github and in general it's working great until I tried to use several layouts for other widgets: import tkinter as tk from tkinter import ttk class App(tk.Tk): …
0
votes
2 answers

An application of TTKTheme to the app style

I have installed the ttk themes through pip install ttkthemes, import and apply theme 'blue' in labels, entries and buttons, however, the app style did not apply the selected theme. Following is my py file. import requests from tkinter import * from…
Loh Boon How
  • 123
  • 7
0
votes
2 answers

Using ttk theme azure-dark and Changing background color of ttk combobox widget

I am using the ttk azure theme dark Azure-ttk-theme. It sets the background color to nice modern looking UI. However, as seen in the images the background color of the tk window, Text widget and combobox widget is set as same. This looks bad when we…
Prakhar Jhudele
  • 955
  • 1
  • 7
  • 14
0
votes
1 answer

How to remove the annoying extra bit of a tkinter.ttk scale

There is this very annoying extra bit on ttk(tkinter.ttk) scale here is the image at the end there is an extra bit, which would annoy some people if they notice it(you would kinda be able to spot it). I had it print out what number the scale was and…
Dodu
  • 109
  • 2
  • 8
0
votes
0 answers

How to reattach all the item that are detached from ttk.treeview

I am trying to build a search in ttk.treeview. Once I enter the keyword, all unrelated items are detached. However, when I try to restore the treeview, I have to specify each path and reattach every single item. Is there a better way to do so? I am…