Skip to content
Advertisement

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

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

Advertisement