Ejemplo n.º 1
0
 def changeConfiguration(self):
     """This method is used to change macroserver as a model of application.
        It shows dialog with list of all macroservers on tango host, if the
        user Cancel dialog it doesn't do anything."""
     dialog = TaurusMacroConfigurationDialog(
         self, self.spockWidget._macro_server_name, self.modelName)
     if dialog.exec_():
         self.spockWidget.setModel(str(dialog.doorComboBox.currentText()))
     else:
         return
Ejemplo n.º 2
0
def demo(model=None):
    """Experiment configuration"""
    #w = main_ChannelEditor()
    w = ExpDescriptionEditor()
    if model is None:
        from sardana.taurus.qt.qtgui.extra_macroexecutor import \
            TaurusMacroConfigurationDialog
        dialog = TaurusMacroConfigurationDialog(w)
        accept = dialog.exec_()
        if accept:
            model = str(dialog.doorComboBox.currentText())
    if model is not None:
        w.setModel(model)
    return w