Ejemplo n.º 1
0
    def __init__(self, parent=None, state=None, settings=None):
        BaseWidget.__init__(self, parent=parent, state=state, settings=settings)

        class OutputFrame(QtGui.QFrame, ui.ui_hfir_output.Ui_Frame):
            def __init__(self, parent=None):
                QtGui.QFrame.__init__(self, parent)
                self.setupUi(self)

        self._content = OutputFrame(self)
        self._layout.addWidget(self._content)
        self.initialize_content()
Ejemplo n.º 2
0
    def __init__(self, parent=None, state=None, settings=None):
        BaseWidget.__init__(self, parent=parent, state=state, settings=settings)

        class OutputFrame(QtGui.QFrame, ui.ui_hfir_output.Ui_Frame): 
            def __init__(self, parent=None):
                QtGui.QFrame.__init__(self, parent)
                self.setupUi(self)
                
        self._content = OutputFrame(self)
        self._layout.addWidget(self._content)
        self.initialize_content()
Ejemplo n.º 3
0
    def __init__(self, parent=None, state=None, settings=None, show_transmission=True):
        BaseWidget.__init__(self, parent=parent, state=state, settings=settings)

        # The following is how you use the widget defined in your .ui file
        #class %INSTR_NAME%ScriptFrame(QtGui.QFrame, ui.ui_%INSTR_NAME_LOWERCASE%_script_element_widget): 
        #    def __init__(self, parent=None):
        #        QtGui.QFrame.__init__(self, parent)
        #        self.setupUi(self)
        
        # Dummy version
        class %INSTR_NAME%ScriptFrame(QtGui.QFrame):
            def __init__(self, parent=None):
                QtGui.QFrame.__init__(self, parent)