taurus.qt.qtgui.button

This package contains a collection taurus Qt button widgets

Classes

class QButtonBox(parent=None, designMode=False, buttons=None, orientation=1)[source]

(more info)

class TaurusCommandButton(parent=None, designMode=False, command=None, parameters=None, icon=None, text=None, timeout=None)[source]

This class provides a button that executes a tango command on its device.

Code examples:

# a button that executes the "status" command for
# the 'a/b/c' device server
button =  TaurusCommandButton(
    command = 'Status', icon='logos:taurus.png'
    )
button.setModel('a/b/c')

#  a button that executes the "exec" command for
# the 'a/b/c' device server with one parameter
button =  TaurusCommandButton(
    command = 'Status', parameters=['2+2'],icon='logos:taurus.png'
    )
button.setModel('a/b/c')

See also

TaurusCommandsForm provides a good example of use of TaurusCommandButton (including managing the return value)

(more info)

class TaurusLauncherButton(parent=None, designMode=False, widget=None, icon=None, text=None)[source]

This class provides a button that launches a modeless dialog containing a specified Taurus widget which gets the same model as the button. The button does not use the model directly. Instead it passes it to the associated widget.

Code examples:

# a button that launches a TaurusAttrForm when clicked
b = TaurusLauncherButton(widget = TaurusAttrForm())
# set dev name, which will be set at the TaurusAttrForm when clicking
b.setModel("a/b/c")

# a button that launches a taurusLabel
b = TaurusLauncherButton(widget="taurus.qt.qtgui.display:TaurusLabel")
b.setModel("a/b/c/d")

# a button that launches a TaurusPlot
b = TaurusLauncherButton(widget="taurus_pyqtgraph:TaurusPlot")
b.setModel("eval:rand(50)")

(more info)

class TaurusLockButton(parent=None, designMode=False)[source]

(more info)