def __init__(self): super(MainWindow, self).__init__() wid = QtGui.QWidget() vbox = QtGui.QVBoxLayout() wid.setLayout(vbox) cbox = QtGui.QSpinBox() cbox.setMinimum(0) cbox.setMaximum(6) cbox.setSpecialValueText('-') stack = DCWireStack() stack.data = dc_wire_occupancy('exim1690.0001.recon') stack.components = DCComponents() stack.components.run = 1 stack.components.fetch_data() vbox.addWidget(cbox) vbox.addWidget(stack) self.setCentralWidget(wid) cbox.valueChanged.connect(stack.setCurrentIndex) self.show()
def __init__(self): super(MainWindow, self).__init__() wid = QtGui.QWidget() vbox = QtGui.QVBoxLayout() wid.setLayout(vbox) cbox = QtGui.QSpinBox() cbox.setMinimum(0) cbox.setMaximum(6) cbox.setSpecialValueText('-') stack = DCWireStack() infile = QtGui.QFileDialog.getOpenFileName(self,'open file',os.getcwd()) stack.data = dc_wire_occupancy(infile) stack.components = DCComponents() stack.components.run = 1 stack.components.fetch_data() vbox.addWidget(cbox) vbox.addWidget(stack) self.setCentralWidget(wid) cbox.valueChanged.connect(stack.setCurrentIndex) self.show()
def openDataFile(self): infile = QtGui.QFileDialog.getOpenFileName(self,'open file',os.getcwd()) self.dc_wire_stack.data = dc.dc_wire_occupancy(infile) self.dc_wire_stack.run = 1
def openDataFile(self): infile = QtGui.QFileDialog.getOpenFileName(self, 'open file', os.getcwd()) self.dc_wire_stack.data = dc.dc_wire_occupancy(infile) self.dc_wire_stack.run = 1