Dynamically load panels

This commit is contained in:
Jordan Ruthe
2020-11-23 21:00:04 -05:00
parent 3b62439939
commit 8204e3ab17
18 changed files with 85 additions and 44 deletions

View File

@@ -10,6 +10,9 @@ from ks_includes.screen_panel import ScreenPanel
logger = logging.getLogger("KlipperScreen.TemperaturePanel")
def create_panel(*args):
return TemperaturePanel(*args)
class TemperaturePanel(ScreenPanel):
active_heater = "extruder"
tempdeltas = ["1","5","10","25"]