ExternalAppAction

digraph inheritance6d8c5ce776 { rankdir=UD; ratio=compress; size="8.0, 12.0"; "BaseConfigurableClass" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="A base class defining the API for configurable objects."]; "ExternalAppAction" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="An specialized QAction for launching external applications"]; "QAction" -> "ExternalAppAction" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BaseConfigurableClass" -> "ExternalAppAction" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QAction" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "QObject" -> "QAction" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QObject" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "simplewrapper" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" [color=dodgerblue1,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
class ExternalAppAction(cmdargs, text=None, icon=None, parent=None, interactive=True)[source]

Bases: PyQt5.QtWidgets.QAction, taurus.qt.qtcore.configuration.configuration.BaseConfigurableClass

An specialized QAction for launching external applications

Signals: apart of those from QAction, it emits a “cmdArgsChanged” signal with the current cmdArgs list as its argument.

DEFAULT_ICON_NAME = 'application-x-executable'
actionTriggered(args=None)[source]

launches the external application as a subprocess

check()[source]

Returns True if the application is available for executing

Return type:bool
Returns:
cmdArgs()[source]
cmdArgsChanged
kill()[source]
setCmdArgs(cmdargs, emitsignal=True)[source]

Sets the command args for executing this external application.

It emits the “cmdArgsChanged” signal with the new cmdArgs list

Parameters:cmdargs (list <str> or str) – A list of strings to be passed to subprocess.Popen() for launching the external application. It can also be a string containing a command, which will be automatically converted to a list