def test(): from taurus.qt.qtgui.application import TaurusApplication app = TaurusApplication(sys.argv) form = PanelDescriptionWizard() def kk(d): print(d) Qt.qApp.SDM = SharedDataManager(form) Qt.qApp.SDM.connectReader('111111', kk) Qt.qApp.SDM.connectWriter('222222', form, 'thisisasignalname') form.show() sys.exit(app.exec_())
def __init__(self, parent=None, designMode=False): TaurusWidget.__init__(self, parent, designMode=designMode) self.loadUi(filename="hklscan.ui") self.connect(self._ui.hklStartScanButton, Qt.SIGNAL("clicked()"), self.start_hklscan) self.connect(self._ui.hklStopScanButton, Qt.SIGNAL("clicked()"), self.stop_hklscan) self.connect(self._ui.hklDisplayAnglesButton, Qt.SIGNAL("clicked()"), self.display_angles) self.connect(self._ui.MacroServerConnectionButton, Qt.SIGNAL( "clicked()"), self.open_macroserver_connection_panel) # Create a global SharedDataManager Qt.qApp.SDM = SharedDataManager(self)
def __init__(self, parent=None, designMode=False): TaurusWidget.__init__(self, parent, designMode=designMode) self.loadUi(filename="diffractometeralignment.ui") self.selectsignal = SelectSignal() self._ui.AlignmentStopButton.clicked.connect(self.stop_movements) self._ui.AlignmentStoreReflectionButton.clicked.connect( self.store_reflection) self._ui.MacroServerConnectionButton.clicked.connect( self.open_macroserver_connection_panel) self._ui.SelectSignalButton.clicked.connect( self.open_selectsignal_panel) # Create a global SharedDataManager Qt.qApp.SDM = SharedDataManager(self)