def __init__(self, ctx, imple): ComponentBase.__init__(self) self.ctx = ctx self.imple = imple self.id = self.IMPLE_NAME self.controller = None self.controllers = []
def dispose(self): try: ComponentBase.dispose(self) self.imple.window_closed() self.dispatcher.clear() self.frame = None self.model = None except Exception as e: print(e)
def __init__(self, ctx, imple, frame, args=()): ComponentBase.__init__(self) self.ctx = ctx self._locked = False self.suspended = False self.CreationArguments = args self.ViewControllerName = "Default" self.ComponentWindow = None self.frame = frame self.model = None self.imple = imple if self.__class__.PROCESSED_COMMANDS is None: uno_commands = [self.UNO_PROTOCOL + key for key in COMMANDS.UNO_COMMANDS.keys()] custom_commands = [self.CMD_PROTOCOL + key for key in COMMANDS.CUSTOM_COMMANDS.keys()] self.__class__.PROCESSED_COMMANDS = set(uno_commands + custom_commands) self.dispatcher = Dispatcher(self, self.PROCESSED_COMMANDS)
def __init__(self, ctx, imple, frame, args=()): ComponentBase.__init__(self) self.ctx = ctx self._locked = False self.suspended = False self.CreationArguments = args self.ViewControllerName = "Default" self.ComponentWindow = None self.frame = frame self.model = None self.imple = imple if self.__class__.PROCESSED_COMMANDS is None: uno_commands = [ self.UNO_PROTOCOL + key for key in COMMANDS.UNO_COMMANDS.keys() ] custom_commands = [ self.CMD_PROTOCOL + key for key in COMMANDS.CUSTOM_COMMANDS.keys() ] self.__class__.PROCESSED_COMMANDS = set(uno_commands + custom_commands) self.dispatcher = Dispatcher(self, self.PROCESSED_COMMANDS)