Skip to content

Commit 7df3335

Browse files
authored
Merge pull request #14 from TACIXAT/patch-1
Make font size configurable.
2 parents f884e97 + 463eb96 commit 7df3335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

QCodeEditor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ def updateContents(self, rect, scroll):
215215

216216

217217
def __init__(self, DISPLAY_LINE_NUMBERS=True, HIGHLIGHT_CURRENT_LINE=True,
218-
SyntaxHighlighter=Pylighter, lang="python", *args):
218+
SyntaxHighlighter=Pylighter, lang="python", font_size=11, *args):
219219
super(QCodeEditor, self).__init__()
220220

221-
self.setFont(QFont("Ubuntu Mono", 11))
221+
self.setFont(QFont("Ubuntu Mono", font_size))
222222
self.setLineWrapMode(QPlainTextEdit.NoWrap)
223223

224224
self.DISPLAY_LINE_NUMBERS = DISPLAY_LINE_NUMBERS

0 commit comments

Comments
 (0)