A collection of widgets for Tkinter's ttk extensions by various authors.
Questions tagged [ttkwidgets]
98 questions
0
votes
1 answer
ttkwidgets Calendar button language
I want to know, if it is possible to change the language of the buttons "previous" and "next". If I change "locale" the monthsnames only are changed but not the buttons.
thank you in advance.

Guenther
- 1
0
votes
1 answer
How to style border for one side in ttk widgets? Tkinter
My question is simple. I want to know how to style one border side of a themed Tkinter widget specifically a button or a TButton?

Zues
- 307
- 5
- 12
0
votes
1 answer
Treeview heading off by one column?
I cannot for the life of me find any post or documentation that explains why the Treeview heading is off by one column from the rest of the data.
Even the documentation I found shows this issue in an example but does not describe the issue.
import…

Mike - SMT
- 14,784
- 4
- 35
- 79
0
votes
1 answer
ttk.Treeview's width increases after hitting ttk.Radiobutton
I have been making this downloader app in python using tkinter and tkinter.ttk and added a recent feature in the app for the users to see a log of previous actions done by the program. It works fine, however, I recently discovered a bug.
I have a…

Omid Ki
- 155
- 3
- 13
0
votes
1 answer
Positioning text inside OptionMenu in tkinter python
hy I am working on tkinter python project.
I am trying to position text to the Left inside OptionMenu using anchor option but it does not seem to work. I am using ttk theme widgets.
Here is the code that I am trying currently.
s =…

abdulsamad
- 158
- 1
- 10
0
votes
1 answer
python tkinter listbox performance with other tk/ttk widgets
I tried to isolate the problem as best as i could.
Lets assume that there are 3 tk/ttk widgets.
Why doesn't the tk_spinbox unselect the selected listbox entry and why does the ttk_spinbox?
I dont want to unselect the items whenever the ttk_spinbox…

john_R
- 107
- 4
0
votes
1 answer
How do I set focus on the first row of a tkinter Treevew list
I am looking to set focus (highlighted state) of the first row in a tree so that the user only needs to use the arrows to move down or up without having to first select a row. The default should be row 0 highlighted. Here is a sample program as an…

99Valk
- 203
- 1
- 7
- 17
0
votes
2 answers
Troubles aligning ttk widget
I'm not able to correctly align ttk widgets in the simple following application.
Code:
from tkinter import *
from tkinter import ttk
class App:
def __init__(self, root):
self.frames = []
self.entries = []
self.root =…

user1259970
- 333
- 3
- 14
0
votes
0 answers
Changing the background of ttk themed widgets in python
I am currently trying to learn ttk themed widgets. I wanted to change the background colour of my ttk button. I followed to ttk docs and written this:
from tkinter import *
from tkinter.ttk import *
root = Tk()
root.title("GUI App…

MegaLegend
- 54
- 7
0
votes
0 answers
python3 tkinter.ttk TreeView
I'm creating a ttk.Treeview widget, using python3.8 I do not want the #0 column to stretch.
I've tried every possible value for the "stretch" attribute to no avail.
stretch=tk.NO
stretch=False
stretch=0
Below is a example snippet
alarmframe =…

MicheleJoyce
- 31
- 2
0
votes
1 answer
TickScale from ttkwidgets jumps to 0 or 1 when clicking on it
When clicking in the TickScale widget it jumps to 1 or 0 depending on the relative position of the cursor and the slider. How can I suppress this behavior?
Changing the resolution option does not make the jump smaller...
import ttkwidgets as ttkw
…

manµ
- 37
- 5
0
votes
1 answer
Ttk style layout not found how to fix?
I am making my own custom Menubar.My work is in process but i recently came across one confusion.
Here is my code:-
from tkinter import *
from tkinter.ttk import Style,Frame as fp
class menu():
def __init__(self,parent,bg="#ffffcc"):
…

Hacker6914
- 247
- 1
- 9
0
votes
1 answer
How can I reduce Tree view' s column's width?
I want to reduce the width of the columns so that become fits . as you can see here (https://i.stack.imgur.com/VK6w8.png) the table is irregular and some columns are not visible. How can I solve this problem?
Here is my code :
def show():
#…

Rihana_SHT
- 5
- 3
0
votes
1 answer
Tkinter (Python) how to get values from all Text widgets in a Function
I am building one of my first UIs with Tkinter and ttk and struggle to link one button click event to collect two widget values.
I want to create a “settings” menu as a child frame and have a feature to modify and read current values from two Text…

Slava Ivshin
- 3
- 1
0
votes
1 answer
error with cx_freeze No module named 'ttkwidgets'
I want to freeze my program but when I do that and I launch the .exe I have the following message
No module named 'ttkwidgets'
Here the install file
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == 'win32':
…

Charles Marcucci
- 68
- 7