Skip to content

Commit

Permalink
Moved startup splash screen option to the spash screen itself, so it'…
Browse files Browse the repository at this point in the history
…s easier to know how to disable it.
  • Loading branch information
joeraz committed Sep 3, 2023
1 parent f10379a commit b303344
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 10 deletions.
5 changes: 4 additions & 1 deletion po/de_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: German\n"
"Language: de\n"
Expand Down Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion po/fr_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: French\n"
"Language: fr\n"
Expand Down Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion po/it_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: Italiano <[email protected]>\n"
"Language: it\n"
Expand Down Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion po/pl_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: Polish <[email protected]>\n"
"Language: pl\n"
Expand Down Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion po/pt_BR_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: \n"
"Language: pt_BR\n"
Expand Down Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions po/pysol.pot
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,9 @@ msgstr ""
msgid "&Enjoy"
msgstr ""

msgid "Show this on startup"
msgstr ""

#: pysollib/help.py:49
#, python-format
msgid "Version %s"
Expand Down
5 changes: 4 additions & 1 deletion po/ru_pysol.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: Russian <[email protected]>\n"
"Language: ru\n"
Expand Down Expand Up @@ -644,6 +644,9 @@ msgstr "&Благодарности..."
msgid "&Enjoy"
msgstr "&Наслаждайтесь"

msgid "Show this on startup"
msgstr ""

#: pysollib/help.py:49
#, python-format
msgid "Version %s"
Expand Down
15 changes: 15 additions & 0 deletions pysollib/tile/tkwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ def __init__(self, parent, ex, title="Error", **kw):
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)
Expand All @@ -328,12 +329,26 @@ def __init__(self, app, parent, title, **kw):
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()


# ************************************************************************
# *
Expand Down
8 changes: 4 additions & 4 deletions pysollib/ui/tktile/menubar.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,10 +771,10 @@ def _createMenubar(self):
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)

Expand Down

0 comments on commit b303344

Please sign in to comment.