starting work on actually saving settings
This commit is contained in:
@@ -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
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user