how can i change the state of a button made with TTK in Python after i clicked it ? I want to disable the button START after i press it once and re-enable it after pressing STOP. I want this because my code creates a new duplicated thread everytime i press Start … so… i want to disable it… I
Tag: ttk
How do i resize this labelframe in tkinter?
So I tried to make this labelframe wider by using the basic width and width option. Here’s my given minimal code. minimalized preview: used in application: i want to get this labelframe little bit bigger and make the inside centered, But i had no knowledge to do so, Any help will apreciated! Answer It seems like you just want to
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. As you can see the headings are off by one column. I cannot figure
Accessing variables from other tab in notebook
Hi all, I was unsuccessful with my last question in this group because my code was too long. I have now brought my code to a minimum and added a screenshot. I hope this time everything is clear and not confusing. My question is: how can I check the variable “val” in Tab1 whether it is smaller than 5. If
How to configure map for all ttk widgets except TButton?
I am creating a GUI with Tkinter and ttk, and I’m trying to create a custom map to make ttk widgets blue on hover. I could apply that to all widgets with passing “.” as the first argument to ttk.Style().map(…). But now I want to exclude TButton from this query. That is, I need to make all widgets but TButton
How to disable manual resizing of Tkinter’s Treeview column?
Since I can’t horizontally scroll Treeview column due to what appears to be Tk/Tkinter limitation, I want to make it sticky so it is attached to the frame. The issue is that user can manually resize Treeview column which can mess up my interface in a certain way. Is it possible to disable such functionality? Note the size of the
How to have tabs of a ttk Notebook in different rows?
In the below program i have many tabs in a single notebook page. when the number of tabs increases the look changes. So how to put the tabs in different rows As in attached image, I have many tabs in a single row, but I want some tabs say from JJJJ in a below row. How to set tabs in
Is there a Tkinter/ttk style reference?
With ttk one can produce code like the following: Is there a list of the different options (e.g. font, foreground, padding) and the values (e.g. helvetica 24, red, 10) associated with each of them? I’ve been searching online and have yet to find such a reference. Also, is there a css-like thing we can use to style a TKinter GUI?
ttk.Button returns None [duplicate]
This question already has answers here: Tkinter: AttributeError: NoneType object has no attribute <attribute name> (4 answers) Closed 8 months ago. I am trying to use the invoke method of a ttk.Button, as shown at TkDocs (look at “The Command Callback”), but I keep getting this error: AttributeError: ‘NoneType’ object has no attribute ‘invoke’ So, I tried this in the