Skip to content
Advertisement

tkinter “unknown option “-padx” “

I am working on a project using tkinter and I wanted to change button styles to make it look better, but when I start import tkinter.tkk the code starts messing up.

I could not find any clear solution on the Internet and also when I start another code with both tkinter and tkinter.tkk imported it works fine.

Here is the working code:

JavaScript

And here is the code that has a problem:

JavaScript

And the exception :

JavaScript

Please let me know if you have any solutions.

Advertisement

Answer

You should know, Tkinter Entry widget can have width property only AS if you want to position the entry widget then use padx and pady however if you want to resize the entry widget then use ipadx and ipady.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement