bms_cell_ctl.py 598 B

123456789101112131415161718192021
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. from widget.bms_cell import Win_Cell
  4. class BmsCellControll:
  5. def __init__(self):
  6. self._view = Win_Cell()
  7. self.init()
  8. def init(self):
  9. self._view.cell_vol_signal.connect(self._page_index)
  10. self._view.cell_temp_signal.connect(self._page_index)
  11. self._view.jz_temp_signal.connect(self._page_index)
  12. self._view.bcu_temp_signal.connect(self._page_index)
  13. self._view.mos_temp_signal.connect(self._page_index)
  14. def _page_index(self,index):
  15. self._view.cell_tab.setCurrentIndex(index)