PyDMShellCommand

class pydm.widgets.shell_command.PyDMShellCommand(parent=None, command=None)[source]

A QPushButton capable of execute shell commands.

allowMultipleExecutions

Whether or not we should allow the same command to be executed even if it is still running.

Returns

Return type

bool

command

The Shell Command to be executed

Returns

Return type

str

execute_command()[source]

Execute the shell command given by `command`. The process is available through the `process` member.

mouseReleaseEvent(mouse_event)[source]

mouseReleaseEvent is called when a mouse button is released. This means that if the user presses the mouse inside your widget, then drags the mouse somewhere else before releasing the mouse button, your widget receives the release event.

Parameters

mouse_event

showIcon

Whether or not we should show the selected Icon.

Returns

Return type

bool