Created libs.code package and moved pertinant DTOs to it as well as widget.code that can go there too
This commit is contained in:
19
src/libs/code/controllers/emit_dispatcher.py
Normal file
19
src/libs/code/controllers/emit_dispatcher.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Python imports
|
||||
|
||||
# Lib imports
|
||||
|
||||
# Application imports
|
||||
from ..event_factory import Event_Factory_Types
|
||||
|
||||
|
||||
|
||||
class EmitDispatcher:
|
||||
def __init__(self):
|
||||
super(EmitDispatcher, self).__init__()
|
||||
|
||||
|
||||
def emit(self, event: Event_Factory_Types.CodeEvent):
|
||||
self.message_all(event)
|
||||
|
||||
def emit_to(self, controller: str, event: Event_Factory_Types.CodeEvent):
|
||||
self.message_to(controller, event)
|
||||
Reference in New Issue
Block a user