def __init__(self, program, parent):
    if app.config.strict_debug:
        assert issubclass(self.__class__, Window), self
        assert issubclass(program.__class__, app.ci_program.CiProgram), self
        assert issubclass(parent.__class__, ViewWindow), parent
    ActiveWindow.__init__(self, program, parent)
    self.hasCaptiveCursor = self.program.prefs.editor['captiveCursor']
    self.textBuffer = None
def __init__(self, program, parent):
    if app.config.strict_debug:
        assert issubclass(self.__class__, Window), self
        assert issubclass(program.__class__, app.ci_program.CiProgram), self
        assert issubclass(parent.__class__, ViewWindow), parent
    ActiveWindow.__init__(self, program, parent)
    self.hasCaptiveCursor = self.program.prefs.editor['captiveCursor']
    self.textBuffer = None