修改数字键盘页面传参函数名避免函数名冲突

This commit is contained in:
张开科 2024-07-18 16:42:55 +08:00
parent 29952f56f6
commit 5302edd888
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class Panel(ScreenPanel):
return num_panel
def refresh(self, extra):
def active_refresh(self, extra):
self.labels["keypad"].clear()
self.active_heater = extra
can_pid = (

View File

@ -354,8 +354,8 @@ class KlipperScreen(Gtk.Window):
self.process_update("notify_status_update", self.printer.data)
if hasattr(self.panels[panel], "activate"):
self.panels[panel].activate()
if hasattr(self.panels[panel], "refresh"):
self.panels[panel].refresh(**kwargs)
if hasattr(self.panels[panel], "active_refresh"):
self.panels[panel].active_refresh(**kwargs)
self.show_all()
def log_notification(self, message, level=0):