Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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)
Beispiel #4
0
 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)