Event system logic rework

This commit is contained in:
2022-09-29 17:22:33 -05:00
parent a7fbc6eadb
commit ded86b81ec
15 changed files with 102 additions and 185 deletions

View File

@@ -39,8 +39,8 @@ class Plugin(PluginBase):
return button
def run(self):
self._module_event_observer()
...
def send_message(self, widget=None, eve=None):
message = "Hello, World!"
self._event_system.push_gui_event([self.name, "display_message", ("warning", message, None)])
event_system.post_event("display_message", ("warning", message, None))