[Skencil-commits] r755 - skencil/branches/skencil-0.6/src/Sketch/UI

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 11 09:05:05 CEST 2010


Author: igor_n
Date: 2010-10-11 09:05:04 +0200 (Mon, 11 Oct 2010)
New Revision: 755

Modified:
   skencil/branches/skencil-0.6/src/Sketch/UI/tkext.py
Log:
vertical and horizontal separator classes are introduced

Modified: skencil/branches/skencil-0.6/src/Sketch/UI/tkext.py
===================================================================
--- skencil/branches/skencil-0.6/src/Sketch/UI/tkext.py	2010-10-09 17:30:50 UTC (rev 754)
+++ skencil/branches/skencil-0.6/src/Sketch/UI/tkext.py	2010-10-11 07:05:04 UTC (rev 755)
@@ -25,8 +25,8 @@
 from Sketch.warn import warn_tb, INTERNAL
 
 
-from Tkinter import Widget, Menu, Menubutton
-from Tkinter import LEFT, DISABLED, NORMAL, END, RAISED
+from Tkinter import Widget, Menu, Menubutton, Frame
+from Tkinter import LEFT, DISABLED, NORMAL, END, RAISED, Y, X, TOP
 import Tkinter
 
 import command
@@ -902,6 +902,26 @@
         if name == 'menu':
             return self.__menu.menu
         return Widget.__getitem__(self, name)
+    
+class VSeparator(Frame):
+    
+    def __init__(self, master, **kw):
+        kw['width'] = 2
+        apply(Frame.__init__, (self, master), kw)
+        darkline = Frame(self, class_ = 'Darkline', width = 1)
+        darkline.pack(side = LEFT, fill = Y)
+        lightline = Frame(self,  class_ = 'Lightline', width = 1)
+        lightline.pack(side = LEFT, fill = Y)
+        
+class HSeparator(Frame):
+    
+    def __init__(self, master, **kw):
+        kw['height'] = 2
+        apply(Frame.__init__, (self, master), kw)
+        darkline = Frame(self,  class_ = 'Darkline', height = 1)
+        darkline.pack(side = TOP, fill = X)
+        lightline = Frame(self,  class_ = 'Lightline', height = 1)
+        lightline.pack(side = TOP, fill = X)
 
 
 def MakeMethodCommand(method, *args):



More information about the Skencil-commits mailing list