Beispiel #1
0
    def __init__(self,
                 id,
                 vttype,
                 param_id,
                 parent_vttype,
                 parent_id,
                 mid,
                 type,
                 value,
                 p_pos,
                 pos,
                 strvaluelist,
                 minVal="0",
                 maxVal="1",
                 stepSize="1",
                 parent='',
                 seq=0,
                 widget="text"):
        """Component() 
        widget can be: text, slider, combobox, numericstepper, checkbox

        """
        DBMashupComponent.__init__(self, id, param_id, vttype, parent_vttype,
                                   parent_id, p_pos, mid, pos, type, value,
                                   minVal, maxVal, stepSize, strvaluelist,
                                   widget, seq, parent)
        if isinstance(seq, bool):
            self.seq = seq
Beispiel #2
0
    def __init__(self, id, vttype, param_id, parent_vttype, parent_id, mid, 
                 type, value, p_pos, pos, strvaluelist, minVal="0",
                 maxVal="1", stepSize="1", parent='', seq=0, widget="text"):
    
        """Component() 
        widget can be: text, slider, combobox, numericstepper, checkbox

        """
        DBMashupComponent.__init__(self, id, param_id, vttype, parent_vttype, 
                                   parent_id, p_pos, mid, pos, type, value, 
                                   minVal, maxVal, stepSize, strvaluelist, 
                                   widget, seq, parent)
        if isinstance(seq, bool):
            self.seq = seq
Beispiel #3
0
 def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
     """do_copy() -> Component 
     returns a clone of itself"""
     cp = DBMashupComponent.do_copy(self, new_ids, id_scope, id_remap)
     Component.convert(cp)
     return cp
Beispiel #4
0
 def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
     """do_copy() -> Component 
     returns a clone of itself"""
     cp = DBMashupComponent.do_copy(self, new_ids, id_scope, id_remap)      
     Component.convert(cp)
     return cp