Added code to set fixed width font on Mac platforms.

Wed, 29 Aug 2012 15:32:08 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 29 Aug 2012 15:32:08 +0200
changeset 6
43d74d535785
parent 5
455dc39cd212
child 7
d8545e81637f

Added code to set fixed width font on Mac platforms.

ProjectPyramid/PyramidDialog.py file | annotate | diff | comparison | revisions
--- a/ProjectPyramid/PyramidDialog.py	Wed Aug 29 11:25:01 2012 +0200
+++ b/ProjectPyramid/PyramidDialog.py	Wed Aug 29 15:32:08 2012 +0200
@@ -17,7 +17,7 @@
 from .Ui_PyramidDialog import Ui_PyramidDialog
 
 import Preferences
-from Globals import isWindowsPlatform
+from Globals import isWindowsPlatform, isMacPlatform
 
 
 class PyramidDialog(QDialog, Ui_PyramidDialog):
@@ -60,6 +60,8 @@
         if fixed:
             if isWindowsPlatform():
                 self.resultbox.setFontFamily("Lucida Console")
+            elif isMacPlatform():
+                self.resultbox.setFontFamily("Menlo")
             else:
                 self.resultbox.setFontFamily("Monospace")
         

eric ide

mercurial