def __init__(self, parent): SubWindow.__init__(self, parent) self.setWindowTitle(QCoreApplication.translate("VtkWindow", "VtkWindow")) self.vtkWidget = VtkWidget(parent=self) self.setWidget(self.vtkWidget) self.setFocusProxy(self.vtkWidget) self.resize(100, 100) self.setMinimumSize(200, 200)
def __init__(self, parent): SubWindow.__init__(self, parent) self.setWindowTitle(QCoreApplication.translate('PyConsoleWindow', 'Python console')) self.console = QPyShell(self) self.setWidget(self.console) self.setMinimumSize(600, 400) self.toggleVisibleAction.setText(QCoreApplication.translate('PyConsoleWindow', 'Python console')) self.toggleVisibleAction.setShortcut(QCoreApplication.translate('PyConsoleWindow', "Ctrl+D")) self.toggleVisibleAction.setStatusTip(QCoreApplication.translate('PyConsoleWindow', 'Python console'))
def __init__(self, parent): SubWindow.__init__(self, parent) self.setWindowTitle(QCoreApplication.translate('TextEditor', 'Text editor')) self.textEdit = QTextEdit(self) self.setWidget(self.textEdit) self.resize(600, 300) self.fileName = None self.changed = False self.connect(self.textEdit, SIGNAL("textChanged()"), self.setChanged)
def __init__(self, parent): SubWindow.__init__(self, parent) #self.graphicsView = QGraphicsView(self) self.graphicsView = GraphicsWidget(self) self.setWidget(self.graphicsView) self.graphicsView.setCacheMode(QGraphicsView.CacheBackground) self.graphicsView.setRenderHint(QPainter.Antialiasing) self.graphicsView.setRenderHint(QPainter.TextAntialiasing) self.resize(300, 300)
def __init__(self, parent): SubWindow.__init__(self, parent) self.setWindowTitle(QCoreApplication.translate('SimTools', 'Time signal Generator')) self.timeSignalWidget = TimeSignalWidget(self) self.setWidget(self.timeSignalWidget)
def __init__(self, parent): SubWindow.__init__(self, parent) self.setWindowTitle(QCoreApplication.translate('SimTools', 'Process')) self.processWidget = ProcessWidget(self) self.setWidget(self.processWidget)