可以创建单像素宽的水平/垂直ttk.Separator吗?
有没有办法创建单像素宽的水平和垂直 ttk.Separator() 的?
Python 2.7/Windows:当我放大 ttk 分隔符时,它们被构建为 2 条平行线 - 一条线灰色,一条线浅/白色。添加后一种颜色以创建微妙的 3D 效果?
我想创建具有系统默认灰色的单像素宽分隔符。一个好处是能够以编程方式发现用于分隔符灰色带的系统颜色。
Is there a way to create single pixel wide horizontal and vertical ttk.Separator()'s?
Python 2.7/Windows: When I magnify the ttk Separators they are built as 2 parallel lines - one line gray and one line a light/white color. The latter color added to create a subtle 3d effect?
I would like to create single pixel wide separators that have the system default gray color. A bonus would be the ability to programmatically discover the system color used for a separator's gray band.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您需要单像素线,请创建一个宽度为 1 的普通框架。它将具有默认的灰色背景。如果您想要根窗口的背景,您可以随时询问:
If you need a single pixel line, create a normal frame with a width of 1. It will have the default gray background. If you want the background of the root window you can always just ask: