mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-15 18:13:09 +00:00
Use fixed-width font for Qt editor.
This commit is contained in:
parent
bf98da0de1
commit
66079549ef
1 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,9 @@ class Editor (QtGui.QPlainTextEdit):
|
|||
def __init__ (self, parent):
|
||||
"""Initialize line numbering."""
|
||||
super(Editor, self).__init__(parent)
|
||||
font = QtGui.QFont("Consolas", 11)
|
||||
font.setFixedPitch(True)
|
||||
self.document().setDefaultFont(font)
|
||||
self.lineNumberArea = LineNumberArea(self)
|
||||
self.blockCountChanged.connect(self.updateLineNumberAreaWidth)
|
||||
self.updateRequest.connect(self.updateLineNumberArea)
|
||||
|
|
|
|||
Loading…
Reference in a new issue