From 8f161ce33570c195e10eabdb5ca895950fae1f61 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Tue, 1 Mar 2016 19:58:45 +0200 Subject: [PATCH] Fix the tiles' dialog from the menu. --- pysollib/tile/menubar.py | 2 ++ pysollib/tk/menubar.py | 3 +++ pysollib/ui/tktile/menubar.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pysollib/tile/menubar.py b/pysollib/tile/menubar.py index 665c779b..c1fca6ae 100644 --- a/pysollib/tile/menubar.py +++ b/pysollib/tile/menubar.py @@ -78,6 +78,8 @@ class PysolMenubarTk(PysolMenubarTkCommon): from wizarddialog import WizardDialog return WizardDialog + def _calcSelectTileDialogWithPreview(self): + return SelectTileDialogWithPreview # # create the menubar # diff --git a/pysollib/tk/menubar.py b/pysollib/tk/menubar.py index e06f5a28..a8e5b371 100644 --- a/pysollib/tk/menubar.py +++ b/pysollib/tk/menubar.py @@ -68,6 +68,9 @@ class PysolMenubarTk(PysolMenubarTkCommon): from wizarddialog import WizardDialog return WizardDialog + def _calcSelectTileDialogWithPreview(self): + return SelectTileDialogWithPreview + # # create the menubar # diff --git a/pysollib/ui/tktile/menubar.py b/pysollib/ui/tktile/menubar.py index b3b1162e..6301ef6c 100644 --- a/pysollib/ui/tktile/menubar.py +++ b/pysollib/ui/tktile/menubar.py @@ -1213,7 +1213,7 @@ Unsupported game for export. key = self.app.tabletile_index if key <= 0: key = self.app.opt.colors['table'] ##.lower() - d = SelectTileDialogWithPreview(self.top, app=self.app, + d = self._calcSelectTileDialogWithPreview()(self.top, app=self.app, title=_("Select table background"), manager=self.app.tabletile_manager, key=key)