Adding NXSelector into MacroGUI

The user can add his/her NXSelector widget or its own into MacroGUI

Figure 7.42: macrogui and nxselector
\includegraphics[width=22.98cm]{nxsmacrogui.ps}

as follows:

from taurus.qt.qtgui.taurusgui.utils import PanelDescription,\
    ExternalApp, ToolBarDescription, AppletDescription

GUI_NAME = 'nxsmacrogui'
ORGANIZATION = 'DESY'

MACROSERVER_NAME = 'p09/macroserver/haso228k.01'
DOOR_NAME = 'p09/door/haso228k.01'

nxselector = PanelDescription(
    'NXSelector',
    classname = 'Selector',
    modulename = 'nxsselector.Selector',
    floating = False,
    sharedDataRead={
        'expConfChanged':'resetConfiguration',
        'doorName':'updateDoorName'
    },
    sharedDataWrite={
        'expConfChanged': 'experimentConfigurationChanged',
        'doorName':'doorName'
    },
    model='p09/nxsrecselector/haso228k'
)

if __name__ == '__main__':
    from taurus.qt.qtgui.application import TaurusApplication
    from taurus.qt.qtgui.taurusgui import TaurusGui
    from taurus.external.qt import Qt
    app = TaurusApplication()
    gui = TaurusGui(confname=__file__)
    gui.show()
    app.exec_()

More details about nxselector can be found in 9.2.



2019-11-13