Ignore:
Timestamp:
Jan 16, 2014 6:35:51 PM (9 years ago)
Author:
jemian
Message:

handle color of alarm severity for INVALID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bcdaqwidgets/trunk/src/bcdaqwidgets/pvview.py

    r1447 r1451  
    77from PySide.QtGui import QWidget, QLabel, QGridLayout, QApplication
    88
    9 #sys.path.insert(0, os.path.abspath('..'))
     9sys.path.insert(0, os.path.abspath('..'))
    1010import bcdaqwidgets
    1111
     
    6060
    6161if __name__ == '__main__':
     62    txt = '${P}cr:{pwm11,ai{0,1,2}:mean,{rate,period},cmd}{.DESC,}'
     63    pvs = []
     64    _p = ['ino:cr:' + _ for _ in ('ai0', 'ai1', 'ai2')]
     65    for _ in _p:
     66        pvs.append(_)
     67        pvs.append(_ + ':mean')
     68    pvs.insert(0, 'ino:cr:pwm11')
     69    for _ in ('rate', 'period', 'cmd'):
     70        pvs.append('ino:cr:' + _)
     71    for _ in pvs:
     72        sys.argv.append(_)
     73        sys.argv.append(_ + '.DESC')
    6274    main()
    6375
Note: See TracChangeset for help on using the changeset viewer.