Possible to create single pixel wide horizontal/vertical ttk.Separator's?
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 programmati开发者_Python百科cally discover the system color used for a separator's gray band.
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:
import Tkinter as tk
root = tk.Tk()
print "background is", root["background"]
精彩评论