monitor Package

monitor Package

Base class for instrument monitors.

class nicos.monitor.Field

Bases: dict

Bases: dict

class nicos.monitor.Monitor(name, **config)

Bases: nicos.cache.client.BaseCacheClient

Bases: BaseCacheClient

A graphical window showing values of cache keys.

For cache keys that correspond to NICOS devices, not only the devicevalue, but also the device status and unit are shown.

Attached devices

notifiers

A list of notifiers used for warning messages. Type: a list of Notifier.

Parameters

font (str)

Font name for the window. Default value: 'Luxi Sans'.

fontsize (int, settable at runtime)

Basic font size. Default value: 12.

geometry (str, settable at runtime)

Geometry for status window. Default value: ''.

layout (a list of list, mandatory in setup)

Status monitor layout.

padding (int, settable at runtime)

Padding for the display fields. Default value: 2.

resizable (bool)

Whether the window is resizable. Default value: True.

title (str)

Title of status window. Default value: 'Status'.

valuefont (str)

Font name for the value displays. Default value: ''.

warnings (a list of list, mandatory in setup)

List of warning conditions.

Parameters inherited from the base classes: description, loglevel, lowlevel, prefix, server

fl Module

Fltk version of instrument monitor.

class nicos.monitor.fl.Fll_Hbox(spacing=0, padx=0, pady=0)

Bases: nicos.monitor.fl.Fll_Layout

Bases: Fll_Layout

resize(x, y, w, h)
class nicos.monitor.fl.Fll_Layout(spacing=0, padx=0, pady=0)

Bases: fltk.Fl_Group

Bases: Fl_Group

pack(child, stretch=None)
padding(*args)
preferredsize()
showchild(child, show)
spacing(*args)
updatelayout()
class nicos.monitor.fl.Fll_LayoutWindow(*args)

Bases: fltk.Fl_Double_Window

Bases: Fl_Double_Window

end()
preferredsize()
resize(x, y, w, h)
class nicos.monitor.fl.Fll_Stretch

Bases: fltk.Fl_Box

Bases: Fl_Box

class nicos.monitor.fl.Fll_Switcher(spacing=0, padx=0, pady=0)

Bases: nicos.monitor.fl.Fll_Layout

Bases: Fll_Layout

resize(x, y, w, h)
switch(index=None)
class nicos.monitor.fl.Fll_Vbox(spacing=0, padx=0, pady=0)

Bases: nicos.monitor.fl.Fll_Layout

Bases: Fll_Layout

resize(x, y, w, h)
class nicos.monitor.fl.Monitor(name, **config)

Bases: nicos.monitor.Monitor

Bases: Monitor

Fltk specific implementation of instrument monitor.

Attached devices

notifiers

A list of notifiers used for warning messages. Type: a list of Notifier.

Parameters inherited from the base classes: description, font, fontsize, geometry, layout, loglevel, lowlevel, padding, prefix, resizable, server, title, valuefont, warnings

class nicos.monitor.fl.Sm_Box(title, fontsize)

Bases: fltk.Fl_Group

Bases: Fl_Group

pack(row)
preferredsize()
resize(x, y, w, h)
class nicos.monitor.fl.Sm_Field(name, width, fontsize, istext, padding=5)

Bases: nicos.monitor.fl.Fll_Vbox

Bases: Fll_Vbox

class nicos.monitor.fl.Sm_Row(padding=5)

Bases: nicos.monitor.fl.Fll_Hbox

Bases: Fll_Hbox

end()
nicos.monitor.fl.measure(font, fontsize, text)

gtk Module

Gtk version of instrument monitor.

class nicos.monitor.gtk.Monitor(name, **config)

Bases: nicos.monitor.Monitor

Bases: Monitor

Gtk specific implementation of instrument monitor.

Attached devices

notifiers

A list of notifiers used for warning messages. Type: a list of Notifier.

Parameters inherited from the base classes: description, font, fontsize, geometry, layout, loglevel, lowlevel, padding, prefix, resizable, server, title, valuefont, warnings

qt Module

Qt version of instrument monitor.

class nicos.monitor.qt.BlockBox(parent, text, font)

Bases: PyQt4.QtGui.QFrame

Bases: QFrame

Provide the equivalent of a Tk LabelFrame: a group box that has a definite frame around it.

enableDisplay(layout, isvis)
moveEvent(event)
resizeEvent(event)
class nicos.monitor.qt.Monitor(name, **config)

Bases: nicos.monitor.Monitor

Bases: Monitor

Qt specific implementation of instrument monitor.

Attached devices

notifiers

A list of notifiers used for warning messages. Type: a list of Notifier.

Parameters inherited from the base classes: description, font, fontsize, geometry, layout, loglevel, lowlevel, padding, prefix, resizable, server, title, valuefont, warnings

class nicos.monitor.qt.MonitorWindow

Bases: PyQt4.QtGui.QMainWindow

Bases: QMainWindow

keyPressEvent(event)
class nicos.monitor.qt.SensitiveLabel(text, parent, enter, leave)

Bases: PyQt4.QtGui.QLabel

Bases: QLabel

A label that calls back when entered/left by the mouse.

enterEvent(event)
leaveEvent(event)
nicos.monitor.qt.nicedelta(t)

tk Module

Tkinter version of instrument monitor.

class nicos.monitor.tk.Field

Bases: dict

Bases: dict

class nicos.monitor.tk.Monitor(name, **config)

Bases: nicos.monitor.Monitor

Bases: Monitor

Tkinter specific implementation of instrument monitor.

Attached devices

notifiers

A list of notifiers used for warning messages. Type: a list of Notifier.

Parameters inherited from the base classes: description, font, fontsize, geometry, layout, loglevel, lowlevel, padding, prefix, resizable, server, title, valuefont, warnings

nicos.monitor.tk.nicedelta(t)

Table Of Contents

Previous topic

tools Package

Next topic

sessions Package