我正在使用ttk的Separator对象在我的应用程序中创建水平分隔符。
separator = ttk.Separator(frame, orient='horizontal')
separator.pack(side='top', fill='x', padx=10)但是,每个分隔符的厚度/重量都是相同的-大约2-3个像素。
有没有可能创造一种更厚的隔板?
谢谢。
发布于 2021-06-29 21:14:17
我已经意识到,在这里,Frame比Separator更好。
我用下面的代码创建了一个框架:
separator2 = tk.Frame(frame, bd=10, relief='sunken', height=4)
separator2.pack(side='top', fill='x')下面是ttk Separator和我的Frame的比较:

感谢acw1668和TheLizzard的评论提出了这一点。
https://stackoverflow.com/questions/68178291
复制相似问题