taurus taurus

Previous topic

ConfigurationMenu

Next topic

Grabber

This Page

ExternalAppAction

Inheritance diagram of ExternalAppAction

class ExternalAppAction(cmdargs, text=None, icon=None, parent=None)

Bases: PyQt4.QtGui.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()

launches the external application as a subprocess

check()

Returns True if the application is available for executing

Return type::class:~`bool`
Returns:
cmdArgs()
setCmdArgs(cmdargs)

Sets the command args for executing this external application.

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

Parameters:cmdargs (:class:~`list` <:class:~`str`> or :class:~`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