[Skencil-commits] r756 - skencil/branches/skencil-0.6/src/Sketch/UI
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Oct 11 09:07:30 CEST 2010
Author: igor_n
Date: 2010-10-11 09:07:29 +0200 (Mon, 11 Oct 2010)
New Revision: 756
Modified:
skencil/branches/skencil-0.6/src/Sketch/UI/mainwindow.py
Log:
refactoring to use separators' classes instead Frame
Modified: skencil/branches/skencil-0.6/src/Sketch/UI/mainwindow.py
===================================================================
--- skencil/branches/skencil-0.6/src/Sketch/UI/mainwindow.py 2010-10-11 07:05:04 UTC (rev 755)
+++ skencil/branches/skencil-0.6/src/Sketch/UI/mainwindow.py 2010-10-11 07:07:29 UTC (rev 756)
@@ -575,15 +575,13 @@
self.mbar = Frame(root, name = 'menubar')
self.mbar.pack(fill=X)
- line = Frame(root, height = 1, bg=Sketch.ui_colors.d3_dark)
+ line = tkext.HSeparator(root)
line.pack(fill = X)
- line = Frame(root, height = 1, bg=Sketch.ui_colors.d3_light)
- line.pack(fill = X)
self.tbar = Frame(root, name = 'toolbar')
self.tbar.pack(fill = X, pady = 3)
- line = Frame(root, height = 1, bg=Sketch.ui_colors.d3_dark)
+ line = tkext.HSeparator(root)
line.pack(fill = X)
space = Frame(root, height = 3)
@@ -954,8 +952,9 @@
buttons = []
for cmd in cmds:
if cmd is None:
- b = Frame(tbar, class_ = 'TBSeparator')
- b.pack(side = LEFT, fill = Y)
+# b = Frame(tbar, class_ = 'TBSeparator')
+ b = tkext.VSeparator(tbar)
+ b.pack(side = LEFT, fill = Y, pady = 3, padx = 2)
else:
if cmd.is_check:
b = CommandCheckbutton(tbar, cmd,
More information about the Skencil-commits
mailing list