Skip to content

Commit

Permalink
wxGUI: macOS use default output font dialog (#760)
Browse files Browse the repository at this point in the history
default font dialog works from at least wxPython 4.0.6
  • Loading branch information
nilason authored and petrasovaa committed Jul 3, 2020
1 parent 0286b85 commit e66ec19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/gui_core/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
from core.gcmd import RunCommand, GError
from core.utils import ListOfMapsets, GetColorTables, ReadEpsgCodes
from core.settings import UserSettings
from core.globalvar import wxPythonPhoenix
from core.globalvar import wxPythonPhoenix, CheckWxVersion
from gui_core.dialogs import SymbolDialog, DefaultFontDialog
from gui_core.widgets import IntegerValidator, ColorTablesComboBox
from core.debug import Debug
Expand Down Expand Up @@ -758,7 +758,7 @@ def _createAppearancePage(self, notebook):
panel.SetSizer(border)

# bindings
if sys.platform == 'darwin':
if sys.platform == 'darwin' and not CheckWxVersion([4, 0, 6]):
outfontButton.Bind(wx.EVT_BUTTON, self.OnSetOutputFontCustomDialog)
else:
outfontButton.Bind(wx.EVT_BUTTON, self.OnSetOutputFont)
Expand Down

0 comments on commit e66ec19

Please sign in to comment.