1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Fix MfxMessageDialog.

This commit is contained in:
Shlomi Fish 2016-03-16 12:28:03 +02:00
parent 2870e9b882
commit 2fa235ff33
3 changed files with 9 additions and 3 deletions

View file

@ -89,6 +89,9 @@ class PysolMenubarTk(PysolMenubarTkCommon):
def _calcSelectTileDialogWithPreview(self):
return SelectTileDialogWithPreview
def _calc_MfxMessageDialog(self):
return MfxMessageDialog
#
# create the menubar
#
@ -112,7 +115,7 @@ class PysolMenubarTk(PysolMenubarTkCommon):
def mOptTheme(self, *event):
theme = self.tkopt.theme.get()
self.app.opt.tile_theme = theme
d = MfxMessageDialog(self.top, title=_("Change theme"),
d = self._calc_MfxMessageDialog()(self.top, title=_("Change theme"),
text=_("""\
This settings will take effect
the next time you restart """)+TITLE,

View file

@ -80,6 +80,9 @@ class PysolMenubarTk(PysolMenubarTkCommon):
def _calcSelectTileDialogWithPreview(self):
return SelectTileDialogWithPreview
def _calc_MfxMessageDialog(self):
return MfxMessageDialog
#
# create the menubar
#

View file

@ -952,7 +952,7 @@ class PysolMenubarTkCommon:
if not self.menustate.save_as:
return
if not game.Solver_Class:
d = MfxMessageDialog(self.top, title=_('Export game error'),
d = self._calc_MfxMessageDialog()(self.top, title=_('Export game error'),
text=_('''
Unsupported game for export.
'''),
@ -1353,7 +1353,7 @@ Unsupported game for export.
except Exception, err:
if DEBUG:
traceback.print_exc()
d = MfxMessageDialog(self.top, title=_('Save game error'),
d = self._calc_MfxMessageDialog()(self.top, title=_('Save game error'),
text=_('''
Error while saving game.