Questions tagged [ttk]

Ttk is the themed widget set for the Tk toolkit, previously known as Tile.

Ttk refers to the themed widgets, originally part of the Tile extension to Tk, which were integrated into Tk, starting with version 8.5.

Ttk aims to separate the code implementing a widget’s behavior from the code implementing its appearance. It includes 17 widgets that use the native look and feel across platforms. Some are very similar to widgets already existing in normal Tk, while others provide new functionality.

Related tags:

  • - the GUI toolkit that Ttk is a part of
  • - questions related to using Tk from Python
  • - questions related to using Tk from Perl

References:

1143 questions
-1
votes
1 answer

.pack ttk and sticky in Python 3.5

I've found out how to create a replacement logo for Tk, and to remove the Tk from the window. I have not however been able to find any existence on how to sticky any buttons or such. I've tried creating a class, and a def create_widget, but for some…
mydiax
  • 41
  • 10
-1
votes
1 answer

Python Tkinter. Insert text in textbox from def?

I maked a script who need to pars 3D printer log files and export it to .xlsx. I finished that but now I need to make GUI for that script, I finished almost everything except the one thing. I have function like this def…
galabl
  • 53
  • 2
  • 9
-1
votes
1 answer

Ttk scrollbar's thumb won't resize

It seems that ttk's scrollbar's thumb automatically fills up the whole trough when elements can fit within the view-able area.. Even after I add more elements such that the treeview extends past the view-able area, the scrollbar's thumb still…
Kai
  • 45
  • 1
  • 8
-1
votes
2 answers

Cannot make default value display for for ttk entry widget using the textvariable parameter

Ok, I made it work by changing all the references to the stringvar "commentEntryVar" to "self.commentEntryVar" inside the def initUI function. I'm not exactly sure why this is necessary (or if making all the references self.commentEntryVar was…
user3556757
  • 3,469
  • 4
  • 30
  • 70
-1
votes
1 answer

Why is there NoneType when should be Label?

Just the question from the title "Why is there NoneType when should be Label?" And how to solve it to be able to modify the label text in the onComboBoxChange? label1 = Tkinter.Label( frame, text = '1.0' ).grid( row = 4, column = 5 ) nums = (…
tobi
  • 1,944
  • 6
  • 29
  • 48
-2
votes
2 answers

Why python isn't using other Tkinter?

I wrote this code but the problem is the python is using only the first line to import tkinter and it doesn't use the other two lines that I used after that. How can I solve this? I tried various ways to import tkinter as ttk but it doesn't work at…
-2
votes
1 answer

ttk checkbutton appears when loaded up with black box in it

taken from: tkk checkbutton appears when loaded up with black box in it the provided solution works well with one checkbutton import tkinter as Tk from tkinter import IntVar from tkinter.ttk import Frame, Checkbutton class TestGui(Frame): def…
cl_cookie
  • 1
  • 2
-2
votes
3 answers

How do I save my text from the textbox on tkinter to a text file?

Another noob asking for help again. Here is my code. I am trying to collect my text from the textbox. I have searched for the solution on how to save it but it just opens the save file and doesn't save anything. What I am trying to do is to save the…
Markkkk
  • 1
  • 1
-2
votes
1 answer

name 'Spinbox' is not defined

These are my imports. import tkinter as tk from tkinter import ttk from tkinter import Menu from tkinter import messagebox as msg The code: window = tk.Tk() window.title('TITLE') spin = Spinbox(window, from_ = 0, to = 99, width = 5, bd =…
Nameless
  • 383
  • 2
  • 11
-2
votes
1 answer

How to change color of a special frame in Tkinter TTK?

I want to change the background of my ttk form (ceasar code script) to the color I have in my window = #FEFB22 I want to change the white "box" color to #FEFB22 click to see image ! from tkinter import * from tkinter import ttk #…
-2
votes
1 answer

about login process in python

I want to login an admin login GUI page, with this login process i want to open a new related GUI window.I have made a database "MY MINI PROJECT.DB" for this adding username and password as columns and Want to fetch and match data from it. But with…
-2
votes
2 answers

What's the most fail-proof way of dynamically acquiring a widget's internal Tcl/Tk class name?

What's the most fail-proof way of dynamically fetching a widget's internal Tcl/Tk class name? try: # In order to be able to import tkinter for import tkinter as tk # either in python 2 or in python 3 from tkinter…
Nae
  • 14,209
  • 7
  • 52
  • 79
-2
votes
1 answer

filling individual frames in tkinter notebook Tabs with widgets (after automatic tab generation)

I found a way makeing it easy to automatically generate multiple Tabs with the ttk notebook. As a "solution" to:…
quest4stack
  • 13
  • 1
  • 3
-2
votes
1 answer

How write a for loop with ttk combobox

I just want to know howmany items are there in a ttk combobox, this I want to use to do the For Loop, somebody please tell me how to do this. I am getting error out of my code, somebody please note my code and help me def…
John R
  • 119
  • 1
  • 4
  • 14
-3
votes
1 answer

Tkinter or ttk GUI programming?

I'm a beginner in python programming and have to make a project that has to be submitted in school. I discovered tkinter and ttk a month ago and am wondering which one would be better to code. The purpose of my program is for it to be…
Sharpfawkes
  • 549
  • 1
  • 8
  • 15
1 2 3
76
77