A collection of widgets for Tkinter's ttk extensions by various authors.
Questions tagged [ttkwidgets]
98 questions
0
votes
0 answers
Modify Tkinter Label from another class in an other file
In main.py there is class MainFrame which display Player._money
In lands.py there is class Lands which allows the player to buy more lands.
Inside class Lands, there is a function called def buy_lands(self) that respond to a button.
here's my…

HaggisBonbon
- 3
- 2
0
votes
1 answer
How do I to call a custom object with custom style methods and use it as a style for a label(and widgets in general) in tkinter?
So I am trying to import my own custom style methods into my main app to then use as a custom style in ttk.Label(), by calling the class method, but I'm having trouble finding a way to call it. Below is the example code of the main app.
import…

Temmy
- 15
- 4
0
votes
0 answers
I keep getting the error unkown option -style trying to change background color of gui with tkinter in python
Firstly im a complete beginner in coding in general. Currently im trying to code a gui which allows to download yt videos.
Im trying to change the background color of this gui to blue but I keep getting the error "unkown option "-style""

flexbeatz
- 17
- 2
0
votes
0 answers
Can Tkinter Treeview Display Images in Any Column Rows As Shown Here?
I'm able to easily populate and sort the Treeview widget, but I was also wondering if it's possible to add images in any column rows that I want. I've checked all over the net, but was unable to find any examples.
Here's an image displaying exactly…

Aaron Catolico
- 13
- 4
0
votes
2 answers
How to set default value of tkinter checkboxtreeview to "checked"
I created a checkbox treeview with ttkwidgets. I want these checkboxes to be "checked" by default. How can I do that.
from tkinter import *
from ttkwidgets import CheckboxTreeview
import tkinter as tk
root = tk.Tk()
tree =…

Sem Kar
- 3
- 1
0
votes
1 answer
tkinter ttk progress bar doesnt stop
can you please help identify the problem and/or suggest alternative solutions?
pb = ttk.Progressbar(
root,
orient='horizontal',
mode='determinate',
length=300
)
pb['maximum'] = 300
pb['value'] = 0
pb.grid(row=3,…
0
votes
1 answer
Is it possible to make a timeline in TKinter and Matplotlib similar to excel?
I wish to make a scrolling timeline for an applet using tkinter. I can currently create charts using matplotlib and update these dynamically, but I want to be able to scroll along this by passing in data about the start and end date, similar to the…

Simon Joubert
- 11
- 2
0
votes
0 answers
How to auto-size toplevel TCL/TL form to match different height notebook tabs
I have a TCL/TL form with 3 Notebook tabs. Each tab has very different layouts and therefore needed heights. How do I get the toplevel form height to only be what is needed for each tab? I have looked at "wm geometry" and ttk::style, probably…
0
votes
1 answer
Failed to execute script due to unhandled exception: No module named ttkwidgets
I created an executable from a py file that used ttkwidgets
import tkinter as tk
import work_logger_database
from ttkwidgets.autocomplete import AutocompleteEntry
root = tk.Tk()
root.geometry('600x300')
items =…
0
votes
0 answers
How to make a ttk.Button reveal an image with fixed size?
I'm having some trouble getting a (ttk, and no I cannot change it to tk) button to maintain its size when it reveals an image. I start with a grid with only black background and no images.
https://i.stack.imgur.com/7ZdOj.png
Clicking on one of the…

roromaniac
- 26
- 2
0
votes
1 answer
Tkinter - TTK - Button change state after click
how can i change the state of a button made with TTK in Python after i clicked it ?
I want to disable the button START after i press it once and re-enable it after pressing STOP. I want this because my code creates a new duplicated thread everytime…

Blockhead01
- 25
- 3
0
votes
1 answer
Python ttk.treeview widget drag and drop issue
I managed to setup dragging and dropping for items inside a ttk.treeview widget, in which I intend to add an image.
The dragging and dropping works, however when I select two consecutive items using the shift+LMB click, and then try dragging them,…

rummy rummyrum
- 3
- 1
- 2
0
votes
0 answers
How to make the ttk.COMBOBOX arrow size larger in Tkinter
I am making a GUI program using Raspberry Pi.
This GUI is made with Tkinter and works only on the touch screen, no mouse and keyboard.
However, the arrow buttons on the COMBOBOX are too small to touch with your fingers.
I used "tkinter.font" to…

Hyunwoo Choi
- 3
- 4
0
votes
0 answers
create dynamic styles in ttk widgets
I would like to create dynamic styles for labels that can have 4 background options, but the style function does not accept lambda, or functions in general, how could I dynamically switch the unique styles of my layout
Create styles
…

Collaxd
- 425
- 3
- 12
0
votes
1 answer
Python ttkwidgets - Dynamically update AutocompleteCombobox completevalues list
I have a tkinter form on which I have 2 comboboxes. The options in the second combobox depend on what has been selected in the first one. When I use a pair of ttk.Combobox widgets, everything works OK, but if I change these to…

David Shaw
- 11
- 4