taurus-org / taurus

Moved to https://gitlab.com/taurus-org/taurus
http://taurus-scada.org
43 stars 46 forks source link

PMTV in compact mode raises expception on Taurus GUI start #1071

Closed reszelaz closed 4 years ago

reszelaz commented 4 years ago

To reproduce:

  1. Create taurus newgui
  2. Add a TaurusForm panel to the GUI and set a motor as the model
  3. Change PMTV to compact mode
  4. Close the GUI
  5. Open the GUI

Then you get:

Traceback (most recent call last):
  File "/home/zreszela/workspace/taurus/lib/taurus/qt/qtgui/base/taurusbase.py", line 394, in filterEvent
    self.handleEvent(*evt)
  File "/home/zreszela/workspace/taurus/lib/taurus/qt/qtgui/input/tauruslineedit.py", line 151, in handleEvent
    self._updateValidator(evt_value)
  File "/home/zreszela/workspace/taurus/lib/taurus/qt/qtgui/input/tauruslineedit.py", line 98, in _updateValidator
    bottom, top = attr.range
AttributeError: 'NoneType' object has no attribute 'range'
reszelaz commented 4 years ago

Sorry, I wanted to report it in Sardana.

cmft commented 4 years ago

Hi @reszelaz , IMO the issue is in taurus so I reopen it. I did a PR to fix it

reszelaz commented 4 years ago

Sure, then I'm closing the one from Sardana. Thanks!