@@ -869,8 +869,25 @@ class DomainModel(VariableListModel):
869869 ATTRIBUTES )
870870 PRIMITIVE = (DiscreteVariable , ContinuousVariable )
871871
872- def __init__ (self , order = SEPARATED , placeholder = None ,
872+ def __init__ (self , order = SEPARATED , separators = True , placeholder = None ,
873873 valid_types = None , alphabetical = False , skip_hidden_vars = True , ** kwargs ):
874+ """
875+
876+ Parameters
877+ ----------
878+ order: tuple or int
879+ Order of attributes, metas, classes, separators and other options
880+ separators: bool
881+ If False, remove separators from `order`.
882+ placeholder: str
883+ The text that is shown when no variable is selected
884+ valid_types: tuple
885+ (Sub)types of `Variable` that are included in the model
886+ alphabetical: bool
887+ If true, variables are sorted alphabetically.
888+ skip_hidden_vars: bool
889+ If true, variables marked as "hidden" are skipped.
890+ """
874891 super ().__init__ (placeholder = placeholder , ** kwargs )
875892 if isinstance (order , int ):
876893 order = (order ,)
@@ -880,6 +897,8 @@ def __init__(self, order=SEPARATED, placeholder=None,
880897 order = (None ,) + \
881898 (self .Separator , ) * (self .Separator in order ) + \
882899 order
900+ if not separators :
901+ order = [e for e in order if e is not self .Separator ]
883902 self .order = order
884903 self .valid_types = valid_types
885904 self .alphabetical = alphabetical
0 commit comments