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

@@ -11,6 +11,9 @@ from ks_includes.screen_panel import ScreenPanel
logger = logging.getLogger("KlipperScreen.SystemPanel")
def create_panel(*args):
return SystemPanel(*args)
class SystemPanel(ScreenPanel):
def initialize(self, panel_name):
_ = self.lang.gettext