From b30334410bb3a713f03e68630ad027e36cc6d286 Mon Sep 17 00:00:00 2001 From: Joe R Date: Sun, 3 Sep 2023 19:27:06 -0400 Subject: [PATCH] Moved startup splash screen option to the spash screen itself, so it's easier to know how to disable it. --- po/de_pysol.po | 5 ++++- po/fr_pysol.po | 5 ++++- po/it_pysol.po | 5 ++++- po/pl_pysol.po | 5 ++++- po/pt_BR_pysol.po | 5 ++++- po/pysol.pot | 3 +++ po/ru_pysol.po | 5 ++++- pysollib/tile/tkwidget.py | 15 +++++++++++++++ pysollib/ui/tktile/menubar.py | 8 ++++---- 9 files changed, 46 insertions(+), 10 deletions(-) diff --git a/po/de_pysol.po b/po/de_pysol.po index ca9f7f29..47a519a4 100644 --- a/po/de_pysol.po +++ b/po/de_pysol.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: PySol 0.0.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2023-08-27 12:10-0400\n" +"PO-Revision-Date: 2023-09-03 19:05-0400\n" "Last-Translator: H. Schaekel \n" "Language-Team: German\n" "Language: de\n" @@ -635,6 +635,9 @@ msgstr "&Danksagung..." msgid "&Enjoy" msgstr "G&enießen" +msgid "Show this on startup" +msgstr "" + #: pysollib/help.py:49 #, python-format msgid "Version %s" diff --git a/po/fr_pysol.po b/po/fr_pysol.po index 1a48c563..f37a47f5 100644 --- a/po/fr_pysol.po +++ b/po/fr_pysol.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: 1.02\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2023-08-27 12:14-0400\n" +"PO-Revision-Date: 2023-09-03 19:06-0400\n" "Last-Translator: Eric Rausch \n" "Language-Team: French\n" "Language: fr\n" @@ -641,6 +641,9 @@ msgstr "Remer&ciements..." msgid "&Enjoy" msgstr "&Jouer" +msgid "Show this on startup" +msgstr "" + #: pysollib/help.py:49 #, python-format msgid "Version %s" diff --git a/po/it_pysol.po b/po/it_pysol.po index 99fc1de4..80830a20 100644 --- a/po/it_pysol.po +++ b/po/it_pysol.po @@ -12,7 +12,7 @@ msgstr "" "Project-Id-Version: it_pysol\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2023-08-27 12:15-0400\n" +"PO-Revision-Date: 2023-09-03 19:07-0400\n" "Last-Translator: Giuliano Colla \n" "Language-Team: Italiano \n" "Language: it\n" @@ -647,6 +647,9 @@ msgstr "Riconos&cimenti" msgid "&Enjoy" msgstr "Buon div&ertimento" +msgid "Show this on startup" +msgstr "" + #: pysollib/help.py:49 #, python-format msgid "Version %s" diff --git a/po/pl_pysol.po b/po/pl_pysol.po index 671750cc..9411681b 100644 --- a/po/pl_pysol.po +++ b/po/pl_pysol.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PySolFC\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2023-08-27 12:15-0400\n" +"PO-Revision-Date: 2023-09-03 19:07-0400\n" "Last-Translator: Jerzy Trzeciak \n" "Language-Team: Polish \n" "Language: pl\n" @@ -639,6 +639,9 @@ msgstr "&Podziękowania..." msgid "&Enjoy" msgstr "&Baw się dobrze" +msgid "Show this on startup" +msgstr "" + #: pysollib/help.py:49 #, python-format msgid "Version %s" diff --git a/po/pt_BR_pysol.po b/po/pt_BR_pysol.po index 29017ca3..9bcc7c9d 100644 --- a/po/pt_BR_pysol.po +++ b/po/pt_BR_pysol.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2023-08-27 12:16-0400\n" +"PO-Revision-Date: 2023-09-03 19:07-0400\n" "Last-Translator: Matheus Knack \n" "Language-Team: \n" "Language: pt_BR\n" @@ -638,6 +638,9 @@ msgstr "&Créditos..." msgid "&Enjoy" msgstr "&Divirta-se" +msgid "Show this on startup" +msgstr "" + #: pysollib/help.py:49 #, python-format msgid "Version %s" diff --git a/po/pysol.pot b/po/pysol.pot index 668245f9..bacfd32a 100644 --- a/po/pysol.pot +++ b/po/pysol.pot @@ -613,6 +613,9 @@ msgstr "" msgid "&Enjoy" msgstr "" +msgid "Show this on startup" +msgstr "" + #: pysollib/help.py:49 #, python-format msgid "Version %s" diff --git a/po/ru_pysol.po b/po/ru_pysol.po index 3047fea4..77955310 100644 --- a/po/ru_pysol.po +++ b/po/ru_pysol.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-12-10 10:19-0500\n" -"PO-Revision-Date: 2023-08-27 12:16-0400\n" +"PO-Revision-Date: 2023-09-03 19:08-0400\n" "Last-Translator: Skomoroh \n" "Language-Team: Russian \n" "Language: ru\n" @@ -644,6 +644,9 @@ msgstr "&Благодарности..." msgid "&Enjoy" msgstr "&Наслаждайтесь" +msgid "Show this on startup" +msgstr "" + #: pysollib/help.py:49 #, python-format msgid "Version %s" diff --git a/pysollib/tile/tkwidget.py b/pysollib/tile/tkwidget.py index 9520b73c..2e14d5fe 100644 --- a/pysollib/tile/tkwidget.py +++ b/pysollib/tile/tkwidget.py @@ -302,6 +302,7 @@ class MfxExceptionDialog(MfxMessageDialog): class PysolAboutDialog(MfxMessageDialog): def __init__(self, app, parent, title, **kw): self._url = kw['url'] + self.app = app kw = self.initKw(kw) MfxDialog.__init__(self, parent, title, kw.resizable, kw.default) top_frame, bottom_frame = self.createFrames(kw) @@ -328,12 +329,26 @@ class PysolAboutDialog(MfxMessageDialog): self._urlClicked ) # + focus = self.createButtons(bottom_frame, kw) + + self.splashscreen = tkinter.BooleanVar() + self.splashscreen.set(app.opt.splashscreen) + show_on_start = ttk.Checkbutton(bottom_frame, + variable=self.splashscreen, + command=self._splashUpdate, + text=_("Show this on startup")) + show_on_start.grid(row=0, column=0, sticky='w', + padx=1, pady=1) + self.mainloop(focus, kw.timeout) def _urlClicked(self, event): openURL(self._url) + def _splashUpdate(self): + self.app.opt.splashscreen = self.splashscreen.get() + # ************************************************************************ # * diff --git a/pysollib/ui/tktile/menubar.py b/pysollib/ui/tktile/menubar.py index 6605641d..1e201c87 100644 --- a/pysollib/ui/tktile/menubar.py +++ b/pysollib/ui/tktile/menubar.py @@ -771,10 +771,10 @@ class PysolMenubarTkCommon: menu.add_checkbutton( label=n_("&Demo logo"), variable=self.tkopt.demo_logo, command=self.mOptDemoLogo) - menu.add_checkbutton( - label=n_("Startup splash sc&reen"), - variable=self.tkopt.splashscreen, - command=self.mOptSplashscreen) + # menu.add_checkbutton( + # label=n_("Startup splash sc&reen"), + # variable=self.tkopt.splashscreen, + # command=self.mOptSplashscreen) # menu.add_separator() # menu.add_command(label="Save options", command=self.mOptSave)