A collection of widgets for Tkinter's ttk extensions by various authors.
Questions tagged [ttkwidgets]
98 questions
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
2 answers
TTK Button - How to make it in "highlighted" state?
below a simple code, it's just a button widget placed in a window:
import tkinter as tk
from tkinter import ttk
class MainWindow:
def __init__(self):
self.parent=tk.Tk()
self.parent.geometry("494x410+370+100")
…

TurboC
- 777
- 1
- 5
- 19
0
votes
0 answers
How to smoothly go from tkinter widgets to tkinter.ttk widgets without much of a hassle [Closed, But could answer if wanted]
I have coded a tkinter application using the usual tk widgets. I have learned that the tkinter.ttk widgets have a more modern look and make everything better. But now alot of my code does not work. Here is a small one which I don't understand…

Dodu
- 109
- 2
- 8
0
votes
1 answer
How to get value from dependent combobox tkinter python?
I'm able to select both the combo box successfully but to print the second dropdown box value, I got lost. Could somebody explain how to print the Table value from the 2nd drop down box.
Note: The two drop downs are dependabale.
import tkinter as…

Devaraj Mani Maran
- 59
- 6
0
votes
0 answers
Tracing changes in Optionmenu outputting error (tkinter)
I am trying to detect and save the current selection in the monthNameDropdown Optionmenu so I change the amount of days in the monthDayDropdown Optionmenu, bu it's giving me a strange error that I do not understand. Can someone please help me…

AmarN
- 3
- 2
0
votes
3 answers
PhotoImage won't Display in tkinter treeview
I am trying to display an image in tkinter treeview. I have been reading possible solutions but none seems to work, I keep getting a blank tree only with the column heading. For what I have been reading, I have to keep a reference to the PhotoImage,…

Alex
- 13
- 3
0
votes
0 answers
how can i position the OPTIONMENU correctly?
i am a noob, please help me :(
how can i change font size of the TTK optionmenu widget and also how can i place it right beside the entry box of the tank number to make it look good
this is how it is currently
this is my code
# Creating Frame to…

codingsenpi
- 71
- 1
- 6
0
votes
1 answer
How to only allow the top frame verticaly stretch
I try to adopt Tkinter, treeview doesn't resize with window, with verry little modification.
import tkinter as tk
from tkinter import ttk
import random
class App():
def __init__(self):
self.root = tk.Tk()
self.frame =…

Bino Oetomo
- 571
- 1
- 10
- 23
0
votes
1 answer
How do you insert a tab in a specific place in a tkinter ttk notebook?
I would like to know how you would set a tkinter notebook tab in a specific place. For example, I have this tab that allows you to clone other tabs, but I want it to stay at the end. The code I tried does not seem to work though, as it generates an…
0
votes
1 answer
How do I change a ttk Combobox values that was made in a for loop
I have this sample code I am running. I am creating a window, and when I load the template page and click the "Click me" button, it adds 20 boxes on the screen. 10 rows, 2 wide. Column 1 is Car makes, and column 2 is Models.
When I click the Make…

Lzypenguin
- 945
- 1
- 7
- 18
0
votes
0 answers
How to display top level images with tkinter and python
import tkinter
from tkinter import ttk
from PIL import Image, ImageTk
def decrypte():
style = ttk.Style()
style.theme_use("alt")
style.configure("green.Horizontal.TProgressbar", foreground='green', background='green')
…

Dkns
- 45
- 2
- 10
0
votes
1 answer
How can i update the complete values of my autocompletecombobox
I'm making a python program that registers books in a database. I made two fields that have the auto-complete option, I wanted that whenever a new record was added it would add to the list of these two auto-complete fields the new author and…

Jhosef Matheus
- 137
- 7
0
votes
0 answers
Issue with python tkinter sqlite3
I'm trying to create a registration form with python tkinter sqlite3, but I have a problem, when I do the update of just one record, all the names are updated (not just the one that was selected), and I have also this issue when I try do add new…
0
votes
1 answer
How can I insert a new line in Tkinter Treeview?
I am working on a treeview in which the text in one column (address) can not fit into a single line. My code looks like this:
# Create the invoice window
invoice = Tk()
invoice.title("Invoices")
invoice.geometry("1800x1000")
#…

SarpHarbali
- 11
- 4
0
votes
1 answer
How do I create a new tab in a notebook widget in tkinter without replacing the previous tab?
So I have this program written in Python Tkinter, it has two frames on two different tabs. On the first there is a button, which should create a third tab with the same frame as the first tab. However, instead of doing that, its replacing the first…

Skcoder
- 299
- 1
- 9