mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Moved startup splash screen option to the spash screen itself, so it's easier to know how to disable it.
This commit is contained in:
parent
f10379af00
commit
b30334410b
9 changed files with 46 additions and 10 deletions
|
@ -3,7 +3,7 @@ msgstr ""
|
||||||
"Project-Id-Version: PySol 0.0.1\n"
|
"Project-Id-Version: PySol 0.0.1\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-12-10 10:19-0500\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 <Holger.Schaekel@web.de>\n"
|
"Last-Translator: H. Schaekel <Holger.Schaekel@web.de>\n"
|
||||||
"Language-Team: German\n"
|
"Language-Team: German\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
|
@ -635,6 +635,9 @@ msgstr "&Danksagung..."
|
||||||
msgid "&Enjoy"
|
msgid "&Enjoy"
|
||||||
msgstr "G&enießen"
|
msgstr "G&enießen"
|
||||||
|
|
||||||
|
msgid "Show this on startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pysollib/help.py:49
|
#: pysollib/help.py:49
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Version %s"
|
msgid "Version %s"
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgstr ""
|
||||||
"Project-Id-Version: 1.02\n"
|
"Project-Id-Version: 1.02\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-12-10 10:19-0500\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 <neelix570@gmail.com>\n"
|
"Last-Translator: Eric Rausch <neelix570@gmail.com>\n"
|
||||||
"Language-Team: French\n"
|
"Language-Team: French\n"
|
||||||
"Language: fr\n"
|
"Language: fr\n"
|
||||||
|
@ -641,6 +641,9 @@ msgstr "Remer&ciements..."
|
||||||
msgid "&Enjoy"
|
msgid "&Enjoy"
|
||||||
msgstr "&Jouer"
|
msgstr "&Jouer"
|
||||||
|
|
||||||
|
msgid "Show this on startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pysollib/help.py:49
|
#: pysollib/help.py:49
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Version %s"
|
msgid "Version %s"
|
||||||
|
|
|
@ -12,7 +12,7 @@ msgstr ""
|
||||||
"Project-Id-Version: it_pysol\n"
|
"Project-Id-Version: it_pysol\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-12-10 10:19-0500\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 <giuliano.colla@gmail.com>\n"
|
"Last-Translator: Giuliano Colla <giuliano.colla@gmail.com>\n"
|
||||||
"Language-Team: Italiano <it@li.org>\n"
|
"Language-Team: Italiano <it@li.org>\n"
|
||||||
"Language: it\n"
|
"Language: it\n"
|
||||||
|
@ -647,6 +647,9 @@ msgstr "Riconos&cimenti"
|
||||||
msgid "&Enjoy"
|
msgid "&Enjoy"
|
||||||
msgstr "Buon div&ertimento"
|
msgstr "Buon div&ertimento"
|
||||||
|
|
||||||
|
msgid "Show this on startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pysollib/help.py:49
|
#: pysollib/help.py:49
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Version %s"
|
msgid "Version %s"
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgstr ""
|
||||||
"Project-Id-Version: PySolFC\n"
|
"Project-Id-Version: PySolFC\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-12-10 10:19-0500\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 <artusek@wp.pl>\n"
|
"Last-Translator: Jerzy Trzeciak <artusek@wp.pl>\n"
|
||||||
"Language-Team: Polish <pl@li.org>\n"
|
"Language-Team: Polish <pl@li.org>\n"
|
||||||
"Language: pl\n"
|
"Language: pl\n"
|
||||||
|
@ -639,6 +639,9 @@ msgstr "&Podziękowania..."
|
||||||
msgid "&Enjoy"
|
msgid "&Enjoy"
|
||||||
msgstr "&Baw się dobrze"
|
msgstr "&Baw się dobrze"
|
||||||
|
|
||||||
|
msgid "Show this on startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pysollib/help.py:49
|
#: pysollib/help.py:49
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Version %s"
|
msgid "Version %s"
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-12-10 10:19-0500\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 <mtknack555@gmail.com>\n"
|
"Last-Translator: Matheus Knack <mtknack555@gmail.com>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: pt_BR\n"
|
"Language: pt_BR\n"
|
||||||
|
@ -638,6 +638,9 @@ msgstr "&Créditos..."
|
||||||
msgid "&Enjoy"
|
msgid "&Enjoy"
|
||||||
msgstr "&Divirta-se"
|
msgstr "&Divirta-se"
|
||||||
|
|
||||||
|
msgid "Show this on startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pysollib/help.py:49
|
#: pysollib/help.py:49
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Version %s"
|
msgid "Version %s"
|
||||||
|
|
|
@ -613,6 +613,9 @@ msgstr ""
|
||||||
msgid "&Enjoy"
|
msgid "&Enjoy"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Show this on startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pysollib/help.py:49
|
#: pysollib/help.py:49
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Version %s"
|
msgid "Version %s"
|
||||||
|
|
|
@ -7,7 +7,7 @@ msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-12-10 10:19-0500\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 <skomoroh@gmail.com>\n"
|
"Last-Translator: Skomoroh <skomoroh@gmail.com>\n"
|
||||||
"Language-Team: Russian <ru@li.org>\n"
|
"Language-Team: Russian <ru@li.org>\n"
|
||||||
"Language: ru\n"
|
"Language: ru\n"
|
||||||
|
@ -644,6 +644,9 @@ msgstr "&Благодарности..."
|
||||||
msgid "&Enjoy"
|
msgid "&Enjoy"
|
||||||
msgstr "&Наслаждайтесь"
|
msgstr "&Наслаждайтесь"
|
||||||
|
|
||||||
|
msgid "Show this on startup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: pysollib/help.py:49
|
#: pysollib/help.py:49
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Version %s"
|
msgid "Version %s"
|
||||||
|
|
|
@ -302,6 +302,7 @@ class MfxExceptionDialog(MfxMessageDialog):
|
||||||
class PysolAboutDialog(MfxMessageDialog):
|
class PysolAboutDialog(MfxMessageDialog):
|
||||||
def __init__(self, app, parent, title, **kw):
|
def __init__(self, app, parent, title, **kw):
|
||||||
self._url = kw['url']
|
self._url = kw['url']
|
||||||
|
self.app = app
|
||||||
kw = self.initKw(kw)
|
kw = self.initKw(kw)
|
||||||
MfxDialog.__init__(self, parent, title, kw.resizable, kw.default)
|
MfxDialog.__init__(self, parent, title, kw.resizable, kw.default)
|
||||||
top_frame, bottom_frame = self.createFrames(kw)
|
top_frame, bottom_frame = self.createFrames(kw)
|
||||||
|
@ -328,12 +329,26 @@ class PysolAboutDialog(MfxMessageDialog):
|
||||||
self._urlClicked
|
self._urlClicked
|
||||||
)
|
)
|
||||||
#
|
#
|
||||||
|
|
||||||
focus = self.createButtons(bottom_frame, kw)
|
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)
|
self.mainloop(focus, kw.timeout)
|
||||||
|
|
||||||
def _urlClicked(self, event):
|
def _urlClicked(self, event):
|
||||||
openURL(self._url)
|
openURL(self._url)
|
||||||
|
|
||||||
|
def _splashUpdate(self):
|
||||||
|
self.app.opt.splashscreen = self.splashscreen.get()
|
||||||
|
|
||||||
|
|
||||||
# ************************************************************************
|
# ************************************************************************
|
||||||
# *
|
# *
|
||||||
|
|
|
@ -771,10 +771,10 @@ class PysolMenubarTkCommon:
|
||||||
menu.add_checkbutton(
|
menu.add_checkbutton(
|
||||||
label=n_("&Demo logo"), variable=self.tkopt.demo_logo,
|
label=n_("&Demo logo"), variable=self.tkopt.demo_logo,
|
||||||
command=self.mOptDemoLogo)
|
command=self.mOptDemoLogo)
|
||||||
menu.add_checkbutton(
|
# menu.add_checkbutton(
|
||||||
label=n_("Startup splash sc&reen"),
|
# label=n_("Startup splash sc&reen"),
|
||||||
variable=self.tkopt.splashscreen,
|
# variable=self.tkopt.splashscreen,
|
||||||
command=self.mOptSplashscreen)
|
# command=self.mOptSplashscreen)
|
||||||
# menu.add_separator()
|
# menu.add_separator()
|
||||||
# menu.add_command(label="Save options", command=self.mOptSave)
|
# menu.add_command(label="Save options", command=self.mOptSave)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue