starting work on actually saving settings

This commit is contained in:
SpookyDervish
2025-10-29 21:06:34 +11:00
parent 411ffdd471
commit c21af8508e
8 changed files with 72 additions and 29 deletions

View File

@@ -51,8 +51,8 @@ class PluginLoader(Window):
def create_widget(self, widget_type: str, *args):
return getattr(textual.widgets, widget_type)(*args)
def run_on_event(self, event, function):
raise NotImplementedError("runOnEvent is not implemented yet.")
def run_on_message(self, event, function):
raise NotImplementedError("onMessage is not implemented yet.")
def create_window(self, title: str, icon: str = "", show_title: bool = True, can_close: bool = True, can_maximize: bool = True, can_resize: bool = True, start_horizontal: str = "center", start_vertical: str = "middle"):
new_window = Window(
@@ -91,7 +91,7 @@ class PluginLoader(Window):
"createWindow": self.create_window,
"createWidget": self.create_widget,
"app": self.app,
"runOnEvent": self.run_on_event
"onMessage": self.run_on_message
},
}