1,191 questions
1
vote
0
answers
33
views
Removing the box surrounding the down arrow of a ttkinter.ComboBox
I want to remove the box surrounding the arrow of a combobox, seen below
I am using ttkinter with the theme "Clam", and styling it like this:
combobox_style = ttk.Style()
...
0
votes
0
answers
42
views
TTK - Don't apply current style for single widget (in own dialog window)
I have the following problem. In my application I use 'black' theme from ttkthemes, with some additional changes. I also uses dialogs for getting values. I also have created my own dialog with ttk....
1
vote
1
answer
68
views
Why text alignment is not performed via styles?
I'm trying to organize text alignment in ttk.Label using style in order to reduce the amount of code:
import tkinter as tk
from tkinter import ttk
from tkinter import font
app = tk.Tk()
width = 605
...
0
votes
1
answer
116
views
issues with themed styles with tkinter ttk
I have been working with styles and trying to understand the interface and I see three issues that I have identified with the following. I would appreciate it if someone could illuminate these issues ...
0
votes
0
answers
52
views
ttk.PanedWindow.sashpos(ind, n) does not set the sash position while dragging
this is the code (note that this is mrp code):
def enforce_sash_limits(self, event):
self.main_paned_win.sashpos(0, 120)
def init_pagebrowser(self):
self.main_paned_win = ttk.PanedWindow(self....
0
votes
0
answers
40
views
problem defining TK() or ttk, what to uses?
I have very simple questions. Can I work with both tk() and ttk, or just one of them?'
I used all the combinations and still getting the same error:
NameError: name 'tkinter' is not defined.
This is ...
1
vote
1
answer
64
views
ttk Frames not filling properly
I am making a python application that uses 4 ttk Frames within its main window.
The first two frames should expand both vertically and horizontally to fill available space.
Frames 3 and 4 should only ...
-1
votes
1
answer
82
views
My tkinter canvas scrollbar is very slow because there is a lot of rectangles I need solve
Image from programm i want to fix lag problem when i move scrollbar I made alot of rectangles by tkinter canvas python and when I move scrollbar to show all rectangles it is very slow and it is very ...
0
votes
1
answer
180
views
How to change the state of a ttkbootstrap ScrolledText widget after creation?
Problem
I'm trying to change the state of a ScrolledText ttkboostrap widget after creation. I can set its state as I please when I create it, but trying to change it after creation fails for both ...
0
votes
0
answers
128
views
discover tkinter ttk widget structure and events
I wanted to creat a multi select combo box using python tkinter.ttk and needed to understand ttk widgets
I used the code below to get something that works, but I really want to understand how the ttk....
0
votes
1
answer
44
views
How to use height parameter in ttk.Button and other widgets?
I have a question.
How do I use height, font, and other common arguments ... in ttk.Button and other widgets?
Button1 = ttk.Button(root , height = 2 , width = 30 , font = "Tahoma 12 bold" , ...
1
vote
1
answer
31
views
Targeting attributes of the currently selected tab
I currently have a ttk.Notebook, tabControl, that is initialized with a singular tab, first tab. That tab comes with a tk.Text, txt.
tabControl = ttk.Notebook(self.root)
...
2
votes
2
answers
320
views
How do you get the StringVar (not the text value, the StringVar itself) of an Entry?
I'm trying to get the StringVar object associated with an Entry widget, but I can't figure out how.
I found this question: get StringVar bound to Entry widget
but none of the answers work for me. Both ...
2
votes
1
answer
613
views
How to update the text of a list element within a CTkListbox
I am writing mass spec data reduction software. I want to provide the user with a list of all samples in the current sequence, next to a check box to show whether the analysis data has been reduced (...
0
votes
1
answer
63
views
Erratic widget behavior when using a tk.Variable as a Widget attribute
I am currently having a problem with Tkinter.Variable initialization and naming.
Setup:
I have a window, with a frame (window_frame) in it and menubar at the top (tk.Menu). Each command on the menu ...
-2
votes
1
answer
38
views
Issue with creating icons in Tkinter columns
I am having an issue with my code where I would like to put icons in the second column of a tkinter treeview but so far I have only been able to to get the icons to work in the first column. I can't ...
0
votes
1
answer
57
views
Tkinter App - My Toplevel window is not appearing. App is stuck in mainloop
I'm trying to build a work schedule tracker, starting with the header. A picture attachement shows how the design will look once completed
I have three classes so far,
InputWindow: A Toplevel window ...
0
votes
0
answers
38
views
TTK button size with different Windows scalings
I have written a Python application with the sv_ttk Deisgn.
A button looks like this, for example:
execute_button = ttk.Button(root, text="Execute", command=lambda: execute_command(...
-1
votes
1
answer
101
views
How to add class variable values to a list, python 3x?
I'm trying to add class variable values to a list inside a function, but I'm not seeing any errors or the expected output? The comboxbox doesn't display when I uncomment the list code.
Outside of the ...
0
votes
1
answer
131
views
Filling a Progress Bar without a button
so I'm trying to make a progress bar that automatically starts filling when
the window is opened..
so instead of making a button that when pressed it call the function of filling
the bar I call the ...
1
vote
2
answers
126
views
How can I change the font and background of my button with TTK?
In fact, I wanted to make a button for my graphical project with TTK; But sadly I failed to do that. After doing a lot of trial and error, I realized that the problem is with the font and background.
...
0
votes
0
answers
122
views
Get the style object when only the style name is known
I started to use ttk Styles. I have now the problem, to find the style object if I only know the style name. I would like to read out properties from the style settings.
This is not really a practical ...
0
votes
1
answer
109
views
Python tkinter: Class for a scrollable frame, the widget inside the scrollable frame does not expand using sticky='nsew', why?
I wrote the folliwing class (reading some examples on the web), it works almost perfectly, except for the fact that the widgets placed inside the scrollable Frame (child of Frame) does not expand when ...
4
votes
2
answers
633
views
Retrieving the current font definition of a tkinter.ttk.Label widget
I wish to retrieve the font object currently assigned to an arbitrary tkinter.ttk.Label widget.
(To be more exact, I want to obtain the exact configuration attributes of the widget’s current tkinter....
0
votes
0
answers
185
views
tkinter ttk copy Style layout
I found this solution to extend a ttk theme:
import tkinter as tk
import tkinter.ttk as ttk
class Style(ttk.Style):
EXTENDS = 'extends'
def __init__(self, parent):
super().__init__(...