Skip to content

Commit

Permalink
wxGUI Graphical Modeler About Dialog: fix import (OSGeo#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi authored Mar 20, 2020
1 parent dd5de23 commit 5341b70
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions gui/wxpython/gui_core/ghelp.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
from wx.lib.agw.hyperlink import HyperLinkCtrl
except ImportError:
from wx.lib.hyperlink import HyperLinkCtrl
try:
from wx.adv import AboutDialogInfo
from wx.adv import AboutBox
except ImportError:
from wx import AboutDialogInfo
from wx import AboutBox

import grass.script as grass

Expand Down Expand Up @@ -894,7 +900,7 @@ def ShowAboutDialog(prgName, startYear):
:param prgName: name of the program
:param startYear: the first year of existence of the program
"""
info = wx.AboutDialogInfo()
info = AboutDialogInfo()

info.SetIcon(
wx.Icon(
Expand All @@ -913,7 +919,7 @@ def ShowAboutDialog(prgName, startYear):
'(>=v2). Read the file COPYING that comes with GRASS for details.',
75)))

wx.AboutBox(info)
AboutBox(info)


def _grassDevTeam(start):
Expand Down

0 comments on commit 5341b70

Please sign in to comment.