def on_measure_select(self, event): # Two SMUs can't be in sweep mode or step mode at the same time! # List sweep or constant is fair enough in more than one SMU print "ComboBox: {cbox}, Text = {ctext}".format(cbox=self.sender().objectName(), ctext = self.sender().currentText()) # print self.modes_activated # Pass the sender to the handling function LayoutUtil.layout_update(self.sender(), self.ui)
def selected_center_span(self, event): if self.ui.center_span_radio.isChecked(): print "Selected center span" self.ui.bottom_layout.itemAt(3).widget().setParent(None) self.ui.bottom_layout.addWidget(LayoutUtil.get_center_span_groupbox())
def selected_start_stop(self, event): if self.ui.start_stop_radio.isChecked(): print "Selected start stop" self.ui.bottom_layout.itemAt(3).widget().setParent(None) self.ui.bottom_layout.addWidget(LayoutUtil.get_start_stop_groupbox())