@@ -2054,14 +2054,15 @@ def __del__(self):
20542054# Routes stdout, stderr to a scrolled window #
20552055# ---------------------------------------------------------------------- #
20562056class VerticalSeparator (Element ):
2057- def __init__ (self , pad = None ):
2057+ def __init__ (self , size = ( None , None ), size_px = None , pad = None ):
20582058 '''
20592059 VerticalSeperator - A separator that spans only 1 row in a vertical fashion
20602060 :param pad:
20612061 '''
20622062 self .Orientation = 'vertical' # for now only vertical works
2063-
2064- super ().__init__ (ELEM_TYPE_SEPARATOR , pad = pad )
2063+ self .Disabled = None
2064+ self .WxStaticLine = None # type: wx.StaticLine
2065+ super ().__init__ (ELEM_TYPE_SEPARATOR , pad = pad , size = size , size_px = size_px )
20652066
20662067 def __del__ (self ):
20672068 super ().__del__ ()
@@ -5311,7 +5312,14 @@ def CharWidthInPixels():
53115312 # timeout=DEFAULT_TOOLTIP_TIME)
53125313 # ------------------------- Separator element ------------------------- #
53135314 elif element_type == ELEM_TYPE_SEPARATOR :
5314- pass
5315+ element # type: VerticalSeparator
5316+ element .WxStaticLine = static_line = wx .StaticLine (toplevel_form .MasterPanel , style = wx .LI_VERTICAL )
5317+
5318+ do_font_and_color (element .WxStaticLine )
5319+
5320+ sizer = pad_widget (static_line )
5321+
5322+ hsizer .Add (sizer , 0 )
53155323 # separator = ttk.Separator(tk_row_frame, orient=element.Orientation, )
53165324 # separator.pack(side=tk.LEFT, padx=element.Pad[0], pady=element.Pad[1], fill='both', expand=True)
53175325 #
0 commit comments