コード例 #1
0
ファイル: controls.py プロジェクト: psilentp/CLpysics
 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)
コード例 #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)
コード例 #3
0
ファイル: controls.py プロジェクト: psilentp/CLpysics
 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)
コード例 #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)