Skip to content

Commit

Permalink
Handle commands without arg in process widget
Browse files Browse the repository at this point in the history
  • Loading branch information
slacrherbst committed Mar 25, 2024
1 parent 04d1e8a commit 89136be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/pyrogue/pydm/widgets/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ def connection_changed(self, connected):
w.showStepExponent = False
w.writeOnPress = True

elif v.isCommand and not v.arg:
w = PyDMPushButton(label='Exec',
pressValue=1,
init_channel=self._path + '.{}/disp'.format(v.name))

else:
w = PyRogueLineEdit(parent=None, init_channel=self._path + '.{}/disp'.format(v.name))
w.showUnits = True
Expand Down

0 comments on commit 89136be

Please sign in to comment.