コード例 #1
0
###############################################################################

#class htmlWidget(QtGui.QWidget):
#def __init__(self,parent=None):
#QtGui.QWidget.__init__(self,parent)
#self._htmlW = htmlviewForm()
#self._htmlW.htmlviewSetupUi(self)

#def buildReport(self, alarm):
#self._htmlW.buildReport(alarm)

##def displayReport(self, report):
##self._htmlW.displayReport(report)

#def show(self):
#QtGui.QWidget.show(self)

if __name__ == '__main__':
    import sys
    qapp = Qt.QApplication(sys.argv)
    form = AlarmPreview(*sys.argv[1:])
    form.show()
    qapp.exec_()

try:
    from fandango.doc import get_fn_autodoc
    __doc__ = get_fn_autodoc(__name__, vars())
except:
    import traceback
    traceback.print_exc()
コード例 #2
0
ファイル: properties.py プロジェクト: S2Innovation/PANIC
    ],
}

TODO_LIST = {
    'PushEvents': [
        PyTango.DevVarStringArray,
        "Events to be pushed by Alarm and AlarmLists attributes", []
    ],
}

PyAlarmDefaultProperties = dict(
    join(d.items()
         for d in (ALARM_CYCLE, ALARM_ARCHIVE, ALARM_LOGS, DEVICE_CONFIG)))
DEVICE_PROPERTIES = dict(
    join(v.items() for v in (PyAlarmDefaultProperties, ALARM_TABLES)))
ALARM_CONFIG = (ALARM_CYCLE.keys() + ALARM_ARCHIVE.keys() + ALARM_LOGS.keys() +
                DEVICE_CONFIG.keys())

try:
    from fandango.doc import get_fn_autodoc
    __doc__ = get_fn_autodoc(__name__,
                             vars(),
                             module_vars=[
                                 'PANIC_PROPERTIES', 'DEVICE_CONFIG',
                                 'ALARM_LOGS', 'ALARM_CYCLE', 'ALARM_TABLES',
                                 'ALARM_ARCHIVE'
                             ])
except:
    import traceback
    traceback.print_exc()