예제 #1
0
class DefaultModuleConfigurationWidget(StandardModuleConfigurationWidget):
    def __init__(self, module, controller, parent=None):
        StandardModuleConfigurationWidget.__init__(self, module, controller,
                                                   parent)
        self.prompt = QPromptWidget()
        self.prompt.setPromptText("Please use the visibility icon (an eye) in"
                                  " the Module Information panel to show or"
                                  " hide a port.")
        layout = QtGui.QVBoxLayout()
        layout.addWidget(self.prompt)
        self.setLayout(layout)
        self.prompt.showPrompt()

    def saveTriggered(self):
        pass

    def resetTriggered(self):
        pass
예제 #2
0
class DefaultModuleConfigurationWidget(StandardModuleConfigurationWidget):
    def __init__(self, module, controller, parent=None):
        StandardModuleConfigurationWidget.__init__(self, module, controller, 
                                                   parent)
        self.prompt = QPromptWidget()
        self.prompt.setPromptText("Please use the visibility icon (an eye) in" 
                                  " the Module Information panel to show or"
                                  " hide a port.")
        layout = QtGui.QVBoxLayout()
        layout.addWidget(self.prompt)
        self.setLayout(layout)
        self.prompt.showPrompt()
        
    def saveTriggered(self):
        pass
    
    def resetTriggered(self):
        pass
예제 #3
0
class QPromptCellWidget(QCellContainer):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.variables = []
        self.plot = None
        self.var_prompt = QPromptWidget()
        self.var_prompt.setPromptText("Drag and drop a variable here")
        self.var_prompt.showPrompt()
        self.plot_prompt = QPromptWidget()
        self.plot_prompt.setPromptText("Drag and drop a plot type here")
        self.plot_prompt.showPrompt()

        prompt_font_size = 16
        self.var_prompt.promptFont.setPointSize(prompt_font_size)
        self.plot_prompt.promptFont.setPointSize(prompt_font_size)

        layout = QtGui.QVBoxLayout()
        layout.addWidget(self.var_prompt)
        layout.addWidget(self.plot_prompt)
        self.setLayout(layout)

    def setPlot(self, plot):
        pass

    def addVariable(self, varName):
        pass

    def updateVarPrompt(self):
        pass

    def setVarPromptText(self, text):
        self.var_prompt.setPromptText(text)

    def setPlotPromptText(self, text):
        self.plot_prompt.setPromptText(text)

    def dumpToFile(self, filename):
        #do nothing
        pass

    def saveToPDF(self, filename):
        #do nothing
        pass
예제 #4
0
class QPromptCellWidget(QCellContainer):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.variables = []
        self.plot = None
        self.var_prompt = QPromptWidget()
        self.var_prompt.setPromptText("Drag and drop a variable here")
        self.var_prompt.showPrompt()
        self.plot_prompt = QPromptWidget()
        self.plot_prompt.setPromptText("Drag and drop a plot type here")
        self.plot_prompt.showPrompt()
        layout = QtGui.QVBoxLayout()
        layout.addWidget(self.var_prompt)
        layout.addWidget(self.plot_prompt)
        self.setLayout(layout)
        
    def setPlot(self, plot):
        pass
        
    def addVariable(self, varName):
        pass
        
    def updateVarPrompt(self):
        pass
            
    def setVarPromptText(self, text):
        self.var_prompt.setPromptText(text)
        
    def setPlotPromptText(self, text):
        self.plot_prompt.setPromptText(text)
        
    def dumpToFile(self, filename):
        #do nothing
        pass
    
    def saveToPDF(self, filename):
        #do nothing
        pass