Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

increasing width python seperator using tkinter

Tags:

python

tkinter

I've been working on a project where I use Separators and I've just can't find out how I make them thicker! this is the code for it I've got at the moment:

tkinter.ttk.Separator(master, orient=VERTICAL).grid(column=1, row=1, rowspan=4, sticky='ns')

so how do I make the Separator thicker/wider? ps. The code is only a small part of my project

like image 422
toto1105 Avatar asked Oct 19 '25 08:10

toto1105


1 Answers

The ttk separator widget isn't designed to be modified in that way. Part of the point of the themed (ttk) widgets is that they adhere to a common theme and thus can't be customized.

You can use a an empty frame widget, which allows you to set the width, height, border style, color, etc.

like image 190
Bryan Oakley Avatar answered Oct 22 '25 03:10

Bryan Oakley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!