def insert(self, i, control, **kwargs): """ Inserts the control, or inserts all controls in the given Layout. """ if isinstance(control, Layout): # If the control is actually a Layout (e.g. ordered group of controls), apply it. control.apply(**kwargs) Layer.insert(self, i, control)
def insert(self, i, control): """ Inserts the control, or inserts all controls in the given Layout. """ if isinstance(control, Layout): # If the control is actually a Layout (e.g. ordered group of controls), apply it. control.apply() Layer.insert(self, i, control)
def insert(self, i, control): if isinstance(control, Layout): # If the control is actually a Layout, apply it. control.apply() Layer.insert(self, i, control)
def insert(self, i, control): if isinstance(control, Layout): control.apply() # If the control is actually a Layout, apply it. Layer.insert(self, i, control)