def _on_state(self, topic, value):
     if value is None:
         try:
             value = self._cmdp[self._state_preference]
         except KeyError:
             return
     if 'fieldComboBox' in value and value['fieldComboBox'] != self.fieldComboBox.currentText():
         comboBoxSelectItemByText(self.fieldComboBox, value['fieldComboBox'], block=True)
     if 'statisticComboBox' in value and value['statisticComboBox'] != self.statisticComboBox.currentText():
         comboBoxSelectItemByText(self.statisticComboBox, value['statisticComboBox'], block=True)
 def _on_io_voltage(self, topic, data):
     comboBoxSelectItemByText(self.ui.voltageComboBox, data)