Skip to content

Commit 36f8f88

Browse files
committedOct 30, 2012
Merge pull request #310 from slarosa/master
Add default font-family and size to output area - PyQGIS Console
2 parents f68b688 + 47da0c0 commit 36f8f88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎python/console_help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ def __init__(self, parent):
5252
lang=" + locale \
5353
+ "&pkgDir=" + qgisDataDir
5454

55-
url = QtCore.QUrl(filename)
55+
url = QUrl(filename)
5656
self.webView.load(url)

‎python/console_output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def setLexers(self):
121121
self.lexer = QsciLexerPython()
122122

123123
settings = QSettings()
124-
loadFont = settings.value("pythonConsole/fontfamilytext").toString()
125-
fontSize = settings.value("pythonConsole/fontsize").toInt()[0]
124+
loadFont = settings.value("pythonConsole/fontfamilytext", "Monospace").toString()
125+
fontSize = settings.value("pythonConsole/fontsize", 10).toInt()[0]
126126
font = QFont(loadFont)
127127
font.setFixedPitch(True)
128128
font.setPointSize(fontSize)

0 commit comments

Comments
 (0)
Please sign in to comment.