def __init__(self, *args, **kwargs): super(EditorPage, self).__init__(columns=2, *args, **kwargs) if operating_system.isMac() and \ not operating_system.isMacOsXMountainLion_OrNewer(): self.addBooleanSetting('editor', 'maccheckspelling', _('Check spelling in editors')) self.addFontSetting('editor', 'descriptionfont', _('Font to use in the description field of edit dialogs')) self.fit()
def __init__(self, *args, **kwargs): super(EditorPage, self).__init__(columns=2, *args, **kwargs) if operating_system.isMac() and \ not operating_system.isMacOsXMountainLion_OrNewer(): self.addBooleanSetting('editor', 'maccheckspelling', _('Check spelling in editors')) self.addFontSetting( 'editor', 'descriptionfont', _('Font to use in the description field of edit dialogs')) self.fit()
def on_spell_checking(self, value): if operating_system.isMac() and not operating_system.isMacOsXMountainLion_OrNewer(): wx.SystemOptions.SetOptionInt("mac.textcontrol-use-spell-checker", value)