예제 #1
0
 def __init__(self, ctx, imple):
     ComponentBase.__init__(self)
     self.ctx = ctx
     self.imple = imple
     self.id = self.IMPLE_NAME
     self.controller = None
     self.controllers = []
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
    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)