mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Fix MfxMessageDialog.
This commit is contained in:
parent
2870e9b882
commit
2fa235ff33
3 changed files with 9 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -80,6 +80,9 @@ class PysolMenubarTk(PysolMenubarTkCommon):
|
|||
def _calcSelectTileDialogWithPreview(self):
|
||||
return SelectTileDialogWithPreview
|
||||
|
||||
def _calc_MfxMessageDialog(self):
|
||||
return MfxMessageDialog
|
||||
|
||||
#
|
||||
# create the menubar
|
||||
#
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue