예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
    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)
예제 #4
0
 def __init__(self, parent, font):
     Qutepart.__init__(self, parent)
     self._sizeHintLabel = QLabel("asdf")
     self._sizeHintLabel.setFont(font)
예제 #5
0
파일: termwidget.py 프로젝트: freason/enki
 def __init__(self, parent, font):
     Qutepart.__init__(self, parent)
     self._sizeHintLabel = QLabel("asdf")
     self._sizeHintLabel.setFont(font)