Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am building a Python tkinter GUI
The code below works just fine.
ttk.Label(win, text='Select a screw size from the list:',
anchor = 'e',
background = bgColor,
font = 16,
width = 25).grid(column=0, row=0)
But if I add the padx option,
ttk.Label(win, text='Select a screw size from the list:',
anchor = 'e',
background = bgColor,
padx = 5,
font = 16,
width = 25).grid(column=0, row=0)
I get an error:
Exception has occurred: TclError
unknown option "-padx"
Everything I find online says this should work.
Any ideas please?
Thank you.
Brad Bylls
Solved! Go to Solution.