def __init__(self, parent): Qutepart.__init__(self, needMarkArea=False, needLineNumbers=False, needCompleter=False) self.setParent(parent) self.encoding = None self.explicitUserEncoding = None self.mime = None # Search/replace support self.__matchesCache = None self.textChanged.connect(self.__resetMatchCache)
def __init__(self, parent): Qutepart.__init__(self, parent) self.encoding = None self.explicitUserEncoding = None self.mime = None # Remove all the default margins self.delMargin('mark_area') self.delMargin('line_numbers') self.completionEnabled = False # Search/replace support self.__matchesCache = None self.textChanged.connect(self.__resetMatchCache)
def __init__(self, parent): Qutepart.__init__(self, parent) self.encoding = None self.explicitUserEncoding = None self.mime = None # Remove all the default margins self.getMargin('mark_area').setVisible(False) self.blockCountChanged.disconnect(self.getMargin('mark_area').update) self.delMargin('mark_area') self._markArea = None self.getMargin('line_numbers').setVisible(False) self.delMargin('line_numbers') self.completionEnabled = False self._completer.terminate() self.textChanged.disconnect(self._completer._onTextChanged) self.document().modificationChanged.disconnect( self._completer._onModificationChanged) # Search/replace support self.__matchesCache = None self.textChanged.connect(self.__resetMatchCache)
def __init__(self, parent, font): Qutepart.__init__(self, parent) self._sizeHintLabel = QLabel("asdf") self._sizeHintLabel.setFont(font)