A collection of widgets for Tkinter's ttk extensions by various authors.
Questions tagged [ttkwidgets]
98 questions
1
vote
0 answers
Optionmenu in tkinter does not work properly when ttkthemes is used
Is there a solution to this , the Optionmenu with ttkthemes seems to not give the normal functioning of the Optionmenu.
Code:
from tkinter import *
from tkinter.font import Font
from tkinter.font import Font
from tkinter import messagebox
from…

Delrius Euphoria
- 14,910
- 3
- 15
- 46
1
vote
1 answer
Why does the indicator in ttk.Menubutton not disappear?
I wrote code with ttk.Menubutton, but I met a problem - the indicator does not disappear, although it was possible to remove it in tk.Menubutton.
Code
ttk.Menubutton:
import tkinter as tk
from tkinter import ttk
root =…

DGDays
- 76
- 12
1
vote
1 answer
ttk Notebook tabs resizing when adding a new tab
I'm working on an application using Tkinter (for the first time so please be kind). It is going to have 3 different tabs along the top, each containing multiple widgets etc which are all being placed using grid. The issue I am facing is when I try…

Hektar
- 71
- 7
0
votes
0 answers
Set height to ttk.Button in Tkinter
I'm trying to set a fixed height to a ttk.Button on MacOS but every fix I tried has failed until now.
from tkinter import *
from tkinter import ttk
root = Tk()
root.resizable(False, False)
frame = ttk.Frame(root)
frame.grid()
style =…

Mallux
- 17
- 1
- 3
0
votes
0 answers
ttkwidgets TimeLine isn't expanding properly
root.title('Timeline Test')
root.geometry('1440x800')
menu = tk.Menu(root, tearoff=False)
menu.add_command(label="Some Action", command=lambda: print("Command Executed"))
timeline = TimeLine(
root,
categories={str(key): {"text": "Layer…
0
votes
1 answer
Ttkbootstrap meter widget doc example not working
I tried an example of the meter widget of ttkbootstrap and it doesn't seem to work. I copy and pasted the exact code and got this error 'AttributeError: module 'PIL.Image' has no attribute 'CUBIC'. Did you mean: 'BICUBIC'?'
This is the code
import…

Mirko Ruhl
- 1
- 1
0
votes
1 answer
TTK List View with Icons Frame/Canvas/Widget/Listbox/Whatever
I cant seem to figure out where I would start to make something like this:
I just want to have something to select pairs of text and icons like in windows explorer with "Small Icons" selected.
from tkinter import *
from tkinter import ttk
title =…

teddyog
- 13
- 2
0
votes
0 answers
Python: highlightthicknes=0 parameter in style configuration for tkinter.ttk Button with Image, has no result
A: tk.Button with image without highlightthicknes setting
B: tk.Button with image with highlightthicknes=0
C: ttk.Button with style.configure('custom.TButton', image=cross_image, highlightthickness=0)
The parameter "highlightthickness" in style…
0
votes
1 answer
placing widgets/buttons in custom positions using `grid` management
I have a tkinter app which will be used in multiple screen sizes. I want to place a listbox in the left side and place some buttons underneath it. I also have a label to place on top of the listbox. I am using grid management to place all the…

Chat0924
- 41
- 7
0
votes
1 answer
How to add different background colors to different selection options in ttk.Combobox?
I want to add different colors to different selections in Combobox. I found questions about changing the overall background color, but not per entry.
I'm attaching some examples below.

Mike Azatov
- 402
- 6
- 22
0
votes
1 answer
How to make Tkinter app work on different computers with different resolutions
I have a tkinter app program written and everything works without getting errors. I converted the tkinter .py to a .exe by using pyinstaller. This application should be able to access through remote computers (desktops or laptops). But the problem…

Chat0924
- 41
- 7
0
votes
0 answers
tkinter ttkwidgets AutocompleteCombobox equivalent for <>
In tkinter Combobox, for calling a callback function we use
cbox.bind("<>", function)
I need the same functionality for ttkwidgets AutocompleteCombobox
cbox.bind("<??>>", function)

Naren Babu R
- 453
- 2
- 9
- 33
0
votes
1 answer
How to add and remove individual tkk.Treeview tags using "addtag" and "dtag"?
I have been trying to add and remove individual tags from items in a ttk.Treeview (tkinter).
I have seen references to addtag and dtag (dtag deletes specified tags leaving unspecified remaining)
but the only examples I can find are related to canvas…

Edward
- 49
- 2
- 5
0
votes
0 answers
ttkbootstrap - Not able to add button inside a tableview module
I have created a table in ttkbootstrap using tableview module but I also want to add a button in each row so that user can click on that button to edit the data in that row. But there seems to be no way to add a button inside a table.
Anyone know…

DeltaView
- 1
- 1
0
votes
0 answers
ttkbootstrap - When more than 10 columns are added in tableview widget, they become out of order
When I add more than 10 columns in tableview they become out of order. It works fine if number of columns are less than 10. Anyone know how to fix that.
Bug - ttkbootstrap bug
Added more than 10 columns, now 10th column is shown after 2nd, then 11th…

DeltaView
- 1
- 1