def splitter(orientation, *widgets):
 layout = QtWidgets.QSplitter()
 layout.setOrientation(orientation)
 layout.setHandleWidth(defs.handle_width)
 layout.setChildrenCollapsible(True)
 for (idx, widget) in enumerate(widgets):
  layout.addWidget(widget)
  layout.setStretchFactor(idx, 1)
 layout.handle(1).setAttribute(Qt.WA_Hover)
 return layout

def splitter ( orientation , * widgets ) : layout = QtWidgets . QSplitter ( ) layout . setOrientation ( orientation ) layout . setHandleWidth ( defs . handle_width ) layout . setChildrenCollapsible ( True ) for ( idx , widget ) in enumerate ( widgets ) : layout . addWidget ( widget ) layout . setStretchFactor ( idx , 1 ) layout . handle ( 1 ) . setAttribute ( Qt . WA_Hover ) return layout
create a spliter over the specified widgets .