13 |
13 |
14 from .ConfigurationPageBase import ConfigurationPageBase |
14 from .ConfigurationPageBase import ConfigurationPageBase |
15 from .Ui_HexEditorPage import Ui_HexEditorPage |
15 from .Ui_HexEditorPage import Ui_HexEditorPage |
16 |
16 |
17 import Preferences |
17 import Preferences |
18 |
|
19 try: |
|
20 MonospacedFontsOption = QFontDialog.FontDialogOption.MonospacedFonts |
|
21 except AttributeError: |
|
22 MonospacedFontsOption = QFontDialog.FontDialogOptions(0x10) |
|
23 |
18 |
24 |
19 |
25 class HexEditorPage(ConfigurationPageBase, Ui_HexEditorPage): |
20 class HexEditorPage(ConfigurationPageBase, Ui_HexEditorPage): |
26 """ |
21 """ |
27 Class implementing the Hex Editor configuration page. |
22 Class implementing the Hex Editor configuration page. |
103 """ |
98 """ |
104 Private method used to select the font to be used. |
99 Private method used to select the font to be used. |
105 """ |
100 """ |
106 self.monospacedFont = self.selectFont( |
101 self.monospacedFont = self.selectFont( |
107 self.monospacedFontSample, self.monospacedFont, |
102 self.monospacedFontSample, self.monospacedFont, |
108 options=MonospacedFontsOption) |
103 options=QFontDialog.FontDialogOption.MonospacedFonts) |
109 |
104 |
110 def polishPage(self): |
105 def polishPage(self): |
111 """ |
106 """ |
112 Public slot to perform some polishing actions. |
107 Public slot to perform some polishing actions. |
113 """ |
108 """ |