def __init__(self, parent=None): super().__init__(parent) ui.loadUi(__file__, self) self.setWindowFlags(Qt.Window | Qt.WindowTitleHint | Qt.CustomizeWindowHint) self.parent = parent
def __init__(self, windowtitle=None, parent=None): super().__init__(parent) ui.loadUi(__file__, self) self.setWindowFlags(Qt.Window | Qt.CustomizeWindowHint | Qt.WindowTitleHint) if windowtitle is not None: self.setWindowTitle(windowtitle) self.parent = parent self.value = 0
def __init__(self, parent=None): super().__init__(parent) ui.loadUi(__file__, self) self.menubar.setVisible(False) self.page0 = ui.Comport(self) self.page1 = ui.Editor(self) self.page2 = ui.Info(self) self.page3 = ui.Manual(self) self.stack.addWidget(self.page0) self.stack.addWidget(self.page1) self.stack.addWidget(self.page2) self.stack.addWidget(self.page3) self.stack.setCurrentIndex(0)
def __init__(self, parent=None): super().__init__(parent) ui.loadUi(__file__, self) self.setWindowFlags(Qt.Window | Qt.WindowTitleHint | Qt.CustomizeWindowHint) self.parent = parent self.lstMajor.addItems(const.MAJORNAMES) self.lstMinor.addItems(const.MINORNAMES) self.lstCommand.addItems(const.COMMANDNAMES) self.lstMajor.setCurrentRow(0) self.lstMinor.setCurrentRow(0) self.lstCommand.setCurrentRow(0) self.cmdExecute.setFocus(True)
def __init__(self, app): self.app = app ui.loadUi() # INIT FORMS self.computationForm = None self._detectorForm = None self._scatteringForm = None # STYLE self.app.setStyle('Plastique') with open('xicam/gui/style.stylesheet', 'r') as f: self.app.setStyleSheet(f.read()) # SETUP FEATURES featuremanager.layout = ui.mainwindow.featuresList featuremanager.load() # INIT EXPERIMENT self.newExperiment() # WIREUP CONTROLS ui.mainwindow.addFeatureButton.clicked.connect(featuremanager.addLayer) ui.mainwindow.addSubstrateButton.clicked.connect( featuremanager.addSubstrate) ui.mainwindow.addParticleButton.clicked.connect( featuremanager.addParticle) ui.mainwindow.showScatteringButton.clicked.connect(self.showScattering) ui.mainwindow.showComp50utationButton.clicked.connect( self.showComputation) ui.mainwindow.showDetectorButton.clicked.connect(self.showDetector) ui.mainwindow.addParticleButton.setMenu(ui.particlemenu) ui.mainwindow.runLocal.clicked.connect(self.runLocal) # SETUP DISPLAY display.load() ui.mainwindow.latticeplaceholder.addWidget(display.viewWidget) # END ui.mainwindow.show() ui.mainwindow.raise_()