예제 #1
0
 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)
예제 #2
0
 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()