修改数字键盘页面传参函数名避免函数名冲突
This commit is contained in:
parent
29952f56f6
commit
5302edd888
@ -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 = (
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user