fixup! tec_qt: Private everything possible

This commit is contained in:
atse 2024-09-09 15:00:44 +08:00
parent d199770de1
commit b0a4e1218a

View File

@ -56,7 +56,7 @@ class MainWindow(QtWidgets.QMainWindow):
ui_file_path = importlib.resources.files("pytec.gui.view").joinpath("tec_qt.ui")
uic.loadUi(ui_file_path, self)
self.info_box = InfoBox()
self._info_box = InfoBox()
# Models
self._thermostat = Thermostat(self, self.report_refresh_spin.value())
@ -79,7 +79,7 @@ class MainWindow(QtWidgets.QMainWindow):
@pyqtSlot()
def handle_connection_error():
self.info_box.display_info_box(
self._info_box.display_info_box(
"Connection Error", "Thermostat connection lost. Is it unplugged?"
)
self._thermostat.connection_error.connect(handle_connection_error)
@ -92,7 +92,7 @@ class MainWindow(QtWidgets.QMainWindow):
self._ctrl_panel_view = CtrlPanel(
self._thermostat,
self._autotuners,
self.info_box,
self._info_box,
[self.ch0_tree, self.ch1_tree],
get_ctrl_panel_config(args),
)
@ -111,7 +111,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.connect_btn.setMenu(self.conn_menu)
self._thermostat_ctrl_menu = ThermostatCtrlMenu(
self._thermostat, self.info_box, self.style()
self._thermostat, self._info_box, self.style()
)
self.thermostat_settings.setMenu(self._thermostat_ctrl_menu)