From 2f11672237060c77dc9224f6f44d16208a8eb535 Mon Sep 17 00:00:00 2001 From: vova Date: Sat, 3 Jun 2023 15:17:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'main.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 4ca3402..a22f263 100644 --- a/main.py +++ b/main.py @@ -117,7 +117,7 @@ class AppWindow(QMainWindow): # TODO: переписать названия пушей и лейблов if checked: - getattr(self.ui, 'pushButton_' + n).setText("Выкл") + getattr(self.ui, 'pushButton_switch_lamp' + n).setText("Выкл") getattr(self.ui, 'label_' + n + '4').hide() getattr(self.ui, 'label_' + n + '0').show() @@ -296,7 +296,7 @@ class AppWindow(QMainWindow): # TODO: переименовать lcdNumber_N в lcdNumber_....._light for s in color_l: - getattr(self.ui, "lcdNumber_" + s).display(data[s]) + getattr(self.ui, "lcd_" + s).display(data[s]) """ self.ui.lcdNumber_7.display(data["ambient_light"]) self.ui.lcdNumber_2.display (data["red_light"])