def __init__(self, program, parent, label, prefCategory, prefName):
    if app.config.strict_debug:
        assert isinstance(label, unicode)
        assert isinstance(prefCategory, unicode)
        assert isinstance(prefName, unicode)
    Window.__init__(self, program, parent)
    self.setTextBuffer(app.text_buffer.TextBuffer(self.program))
    self.setController(app.cu_editor.ToggleController)
    self.setParent(parent)
    self.name = label
    self.prefCategory = prefCategory
    self.prefName = prefName
    colorPrefs = self.program.color
    self.color = colorPrefs.get('keyword')
    self.focusColor = colorPrefs.get('selected')
    self.textBuffer.view.showCursor = False
def __init__(self, program, parent, label, prefCategory, prefName):
    if app.config.strict_debug:
        assert isinstance(label, unicode)
        assert isinstance(prefCategory, unicode)
        assert isinstance(prefName, unicode)
    Window.__init__(self, program, parent)
    self.setTextBuffer(app.text_buffer.TextBuffer(self.program))
    self.setController(app.cu_editor.ToggleController)
    self.setParent(parent)
    self.name = label
    self.prefCategory = prefCategory
    self.prefName = prefName
    colorPrefs = self.program.color
    self.color = colorPrefs.get('keyword')
    self.focusColor = colorPrefs.get('selected')
    self.textBuffer.view.showCursor = False