More portable selection of monospaced font

git-svn-id: http://svn.osgeo.org/qgis/trunk@13422 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2010-05-04 12:48:59 +00:00
parent 7479708bf8
commit a25fc30e9a

View File

@ -126,7 +126,8 @@ class PythonEdit(QTextEdit, code.InteractiveInterpreter):
self.setMinimumSize(30, 30)
self.setUndoRedoEnabled(False)
self.setAcceptRichText(False)
monofont = QFont("Bitstream Vera Sans Mono", 10)
monofont = QFont("Monospace")
monofont.setStyleHint(QFont.TypeWriter)
self.setFont(monofont)
self.buffer = []