eric7/Preferences/ConfigurationPages/HexEditorPage.py

branch
eric7
changeset 8875
67c3ea933787
parent 8319
ea11a3948f40
child 8881
54e42bc2437a
equal deleted inserted replaced
8874:ccd99849803e 8875:67c3ea933787
46 "RecentNumber")) 46 "RecentNumber"))
47 47
48 # font 48 # font
49 self.monospacedFont = Preferences.getHexEditor("Font") 49 self.monospacedFont = Preferences.getHexEditor("Font")
50 self.monospacedFontSample.setFont(self.monospacedFont) 50 self.monospacedFontSample.setFont(self.monospacedFont)
51
52 # colours
53 self.initColour("HighlightingBackGround",
54 self.highlightingBackGroundButton,
55 Preferences.getHexEditor)
56 self.initColour("HighlightingForeGround",
57 self.highlightingForeGroundButton,
58 Preferences.getHexEditor)
59 self.initColour("SelectionBackGround",
60 self.selectionBackGroundButton,
61 Preferences.getHexEditor)
62 self.initColour("SelectionForeGround",
63 self.selectionForeGroundButton,
64 Preferences.getHexEditor)
65 self.initColour("AddressAreaBackGround",
66 self.addressAreaBackGroundButton,
67 Preferences.getHexEditor)
68 self.initColour("AddressAreaForeGround",
69 self.addressAreaForeGroundButton,
70 Preferences.getHexEditor)
71 51
72 def save(self): 52 def save(self):
73 """ 53 """
74 Public slot to save the IRC configuration. 54 Public slot to save the IRC configuration.
75 """ 55 """
87 "HighlightChanges", self.highlightingCheckBox.isChecked()) 67 "HighlightChanges", self.highlightingCheckBox.isChecked())
88 Preferences.setHexEditor( 68 Preferences.setHexEditor(
89 "Font", self.monospacedFont) 69 "Font", self.monospacedFont)
90 Preferences.setHexEditor( 70 Preferences.setHexEditor(
91 "RecentNumber", self.recentFilesSpinBox.value()) 71 "RecentNumber", self.recentFilesSpinBox.value())
92
93 # colours
94 self.saveColours(Preferences.setHexEditor)
95 72
96 @pyqtSlot() 73 @pyqtSlot()
97 def on_monospacedFontButton_clicked(self): 74 def on_monospacedFontButton_clicked(self):
98 """ 75 """
99 Private method used to select the font to be used. 76 Private method used to select the font to be used.

eric ide

mercurial