Esempio n. 1
0
 def refresh_from_new_preferences(self):
     e = self.active_editor
     if e is not None:
         prefs = self.get_preferences()
         e.machine.text_font = prefs.text_font
         e.map_width = prefs.map_width
         e.bitmap_width = prefs.bitmap_width
         self.hex_grid_lower_case = prefs.hex_grid_lower_case
         self.assembly_lower_case = prefs.assembly_lower_case
         ByteTable.update_preferences(prefs)
         DisassemblyTable.update_preferences(prefs)
         e.reconfigure_panes()
Esempio n. 2
0
 def initialize_class_preferences(self):
     prefs = self.get_preferences()
     ByteTable.update_preferences(prefs)
     DisassemblyTable.update_preferences(prefs)