15 from E5Gui import E5MessageBox |
15 from E5Gui import E5MessageBox |
16 |
16 |
17 from .Ui_PyramidDialog import Ui_PyramidDialog |
17 from .Ui_PyramidDialog import Ui_PyramidDialog |
18 |
18 |
19 import Preferences |
19 import Preferences |
20 from Globals import isWindowsPlatform |
20 from Globals import isWindowsPlatform, isMacPlatform |
21 |
21 |
22 |
22 |
23 class PyramidDialog(QDialog, Ui_PyramidDialog): |
23 class PyramidDialog(QDialog, Ui_PyramidDialog): |
24 """ |
24 """ |
25 Class implementing a dialog starting a process and showing its output. |
25 Class implementing a dialog starting a process and showing its output. |
58 self.outputGroup.setTitle(text) |
58 self.outputGroup.setTitle(text) |
59 |
59 |
60 if fixed: |
60 if fixed: |
61 if isWindowsPlatform(): |
61 if isWindowsPlatform(): |
62 self.resultbox.setFontFamily("Lucida Console") |
62 self.resultbox.setFontFamily("Lucida Console") |
|
63 elif isMacPlatform(): |
|
64 self.resultbox.setFontFamily("Menlo") |
63 else: |
65 else: |
64 self.resultbox.setFontFamily("Monospace") |
66 self.resultbox.setFontFamily("Monospace") |
65 |
67 |
66 if not linewrap: |
68 if not linewrap: |
67 self.resultbox.setLineWrapMode(QTextEdit.NoWrap) |
69 self.resultbox.setLineWrapMode(QTextEdit.NoWrap) |