globalvar.py 778 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. '''
  4. @文件 :globalvar.py
  5. @时间 :2022/01/22 10:11:23
  6. @作者 :None
  7. @版本 :1.0
  8. @说明 :全局变量
  9. '''
  10. from utils.qt import QMutex, QSemaphore
  11. from utils.can import MessageDeal
  12. class SD:
  13. MAJOR_VERSION_NUMBER = 0
  14. # 子版本号
  15. MINOR_VERSION_NUMBER = 0
  16. # 修正版本号
  17. REVISION_NUMBER = 0
  18. CAN_TYPE = 0
  19. # 加载CAN连接驱动
  20. CAN_CONTROL = MessageDeal()
  21. CAN_ON_OFF = 0
  22. # 工商业储能 or 户储
  23. CCU_TYPE = 0
  24. BCU_ID = 1
  25. # 主机列表
  26. BCU_LIST = [0 for i in range(15)]
  27. BCU_LIFE_STATE = [0 for i in range(15)]
  28. SYSTEM_LANGUAGE = 0
  29. HIGH_DPI = 0
  30. START_RUN = False
  31. FILE_PATH = "./"
  32. RECORD_SAVE = 0
  33. RECORD_NAME = ""