1,191 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
111
views
Tkinter ttk.button background is leaking color outside the button border
Button is created like:
style.configure('Dark.TButton', background=button_base, foreground=colors['text'], borderwidth=1,
bordercolor=edge, lightcolor=edge, darkcolor=edge, padding=...
1
vote
0
answers
46
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
1
answer
73
views
How do I populate a combobox based on the selection in another combobox?
I've been working on a simple program to track machine maintenance instances in a CSV file for future analysis.
Everything seems to work except for populating the list for the combTask combobox based ...
0
votes
0
answers
52
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....
0
votes
1
answer
97
views
Tkinter Treeview rows inserted but not displaying — values confirmed via .item() and .get_children()
I'm building an admin panel using Tkinter in Python. I'm using ttk. Treeview to display computed salary data. I call tree.insert(...) and the data is inserted — I can confirm the values by calling:
...
1
vote
1
answer
76
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
...
-3
votes
2
answers
97
views
syntax error with ttk.Style.element_create()
Tying to understand the ttk, style element_create() syntax. Here is one that I copied off the internet, but it syntaxes.
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
# Create a ...
0
votes
1
answer
134
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 ...
2
votes
1
answer
93
views
How to bind Raspberry's GPIO events to invoke TKinter buttons?
Here is the code that works with keyboard events. I'd like to do the same with gpio State changes instead of key_press events. Thks :
from tkinter import *
from tkinter import ttk
import keyboard
...
0
votes
0
answers
57
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
1
answer
60
views
TTK style.configure for button font size does not work
I am writing a very simple GUI application through TTK where I wish to make the font size of the text in the button bigger, however it seems to not work when I use style.configure(). I have no idea ...
0
votes
0
answers
44
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 ...
0
votes
2
answers
163
views
How to make the ttk treeview not show extra empty columns?
I am building an app with tkinter and running into some annoying issues.
When I load my data into the ttk treeview, I see that there are always some additional columns on the right side of my treeview ...
1
vote
1
answer
66
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 ...
0
votes
2
answers
52
views
Rendering issue with ttk.TreeView
I'm trying to use the ttk treeview widget. I'm able to create and populate it, and it seems to work properly. However it is rendering with a large empty "column" on the left side and I can'...