fixes on secop gui
- do not display a dialog when a command returns None - apply fmtstr, if available Change-Id: I74da3e86e4eae9000608581e0a0f6e8c72cef715
This commit is contained in:
@ -76,7 +76,13 @@ class GenericParameterWidget(ParameterWidget):
|
||||
self.setLineEdit.text())
|
||||
|
||||
def updateValue(self, value):
|
||||
self.currentLineEdit.setText(str(value))
|
||||
fmtstr = getattr(self._datatype, 'fmtstr', '%s')
|
||||
if value.readerror:
|
||||
value = str(value)
|
||||
else:
|
||||
value = fmtstr % (value.value,)
|
||||
self.currentLineEdit.setText(value)
|
||||
# self.currentLineEdit.setText(str(value))
|
||||
|
||||
|
||||
class EnumParameterWidget(GenericParameterWidget):
|
||||
|
Reference in New Issue
Block a user