mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Compare commits
2 commits
5005ef6796
...
7940e62285
Author | SHA1 | Date | |
---|---|---|---|
|
7940e62285 | ||
|
9cd7a2c5fe |
10 changed files with 44 additions and 7 deletions
|
@ -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: 2024-12-22 17:14-0500\n"
|
||||
"PO-Revision-Date: 2024-12-28 19:10-0500\n"
|
||||
"Last-Translator: H. Schaekel <Holger.Schaekel@web.de>\n"
|
||||
"Language-Team: German\n"
|
||||
"Language: de\n"
|
||||
|
@ -2564,6 +2564,9 @@ msgstr "Zuletzt gespielte"
|
|||
msgid "Favorite games"
|
||||
msgstr "Favoritenliste"
|
||||
|
||||
msgid "Random game"
|
||||
msgstr ""
|
||||
|
||||
#: pysollib/kivy/menubar.py:244
|
||||
msgid "<Add>"
|
||||
msgstr "<Hinzufügen>"
|
||||
|
|
|
@ -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: 2024-12-22 17:14-0500\n"
|
||||
"PO-Revision-Date: 2024-12-28 19:10-0500\n"
|
||||
"Last-Translator: Eric Rausch <neelix570@gmail.com>\n"
|
||||
"Language-Team: French\n"
|
||||
"Language: fr\n"
|
||||
|
@ -2605,6 +2605,9 @@ msgstr "Jeux récents"
|
|||
msgid "Favorite games"
|
||||
msgstr "Jeux favoris"
|
||||
|
||||
msgid "Random game"
|
||||
msgstr ""
|
||||
|
||||
#: pysollib/kivy/menubar.py:244
|
||||
msgid "<Add>"
|
||||
msgstr "<Ajouter>"
|
||||
|
|
|
@ -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: 2024-12-22 17:14-0500\n"
|
||||
"PO-Revision-Date: 2024-12-28 19:11-0500\n"
|
||||
"Last-Translator: Giuliano Colla <giuliano.colla@gmail.com>\n"
|
||||
"Language-Team: Italiano <it@li.org>\n"
|
||||
"Language: it\n"
|
||||
|
@ -2614,6 +2614,9 @@ msgstr "Giochi recenti"
|
|||
msgid "Favorite games"
|
||||
msgstr "Giochi preferiti"
|
||||
|
||||
msgid "Random game"
|
||||
msgstr ""
|
||||
|
||||
#: pysollib/kivy/menubar.py:244
|
||||
msgid "<Add>"
|
||||
msgstr ""
|
||||
|
|
|
@ -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: 2024-12-22 17:13-0500\n"
|
||||
"PO-Revision-Date: 2024-12-28 19:11-0500\n"
|
||||
"Last-Translator: Jerzy Trzeciak <artusek@wp.pl>\n"
|
||||
"Language-Team: Polish <pl@li.org>\n"
|
||||
"Language: pl\n"
|
||||
|
@ -2618,6 +2618,9 @@ msgstr "Ostatni&e gry"
|
|||
msgid "Favorite games"
|
||||
msgstr "Ulubione gry"
|
||||
|
||||
msgid "Random game"
|
||||
msgstr ""
|
||||
|
||||
#: pysollib/kivy/menubar.py:244
|
||||
msgid "<Add>"
|
||||
msgstr "<Dodaj>"
|
||||
|
|
|
@ -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: 2024-12-22 17:13-0500\n"
|
||||
"PO-Revision-Date: 2024-12-28 19:11-0500\n"
|
||||
"Last-Translator: Matheus Knack <mtknack555@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: pt_BR\n"
|
||||
|
@ -2626,6 +2626,9 @@ msgstr "Jogos recentes"
|
|||
msgid "Favorite games"
|
||||
msgstr "Jogos favoritos"
|
||||
|
||||
msgid "Random game"
|
||||
msgstr ""
|
||||
|
||||
#: pysollib/kivy/menubar.py:244
|
||||
msgid "<Add>"
|
||||
msgstr "<Adicionar>"
|
||||
|
|
|
@ -2435,6 +2435,9 @@ msgstr ""
|
|||
msgid "Favorite games"
|
||||
msgstr ""
|
||||
|
||||
msgid "Random game"
|
||||
msgstr ""
|
||||
|
||||
#: pysollib/kivy/menubar.py:244
|
||||
msgid "<Add>"
|
||||
msgstr ""
|
||||
|
|
|
@ -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: 2024-12-22 17:13-0500\n"
|
||||
"PO-Revision-Date: 2024-12-28 19:12-0500\n"
|
||||
"Last-Translator: Skomoroh <skomoroh@gmail.com>\n"
|
||||
"Language-Team: Russian <ru@li.org>\n"
|
||||
"Language: ru\n"
|
||||
|
@ -2616,6 +2616,9 @@ msgstr "Выбрать недавнюю игру"
|
|||
msgid "Favorite games"
|
||||
msgstr "Избранные игры"
|
||||
|
||||
msgid "Random game"
|
||||
msgstr ""
|
||||
|
||||
#: pysollib/kivy/menubar.py:244
|
||||
msgid "<Add>"
|
||||
msgstr ""
|
||||
|
|
|
@ -35,7 +35,7 @@ from pysollib.app_stat_result import GameStatResult
|
|||
from pysollib.app_statistics import Statistics
|
||||
from pysollib.cardsetparser import read_cardset_config
|
||||
from pysollib.gamedb import GAME_DB, GI, loadGame
|
||||
from pysollib.help import destroy_help_html, help_about
|
||||
from pysollib.help import destroy_help_html, help_about, raise_help_html
|
||||
from pysollib.images import Images, SubsampledImages
|
||||
from pysollib.mfxutil import Struct, destruct
|
||||
from pysollib.mfxutil import USE_PIL
|
||||
|
@ -523,6 +523,7 @@ class Application:
|
|||
raise_find_card_dialog(self.game)
|
||||
raise_full_picture_dialog(self.game)
|
||||
raise_solver_dialog(self.game)
|
||||
raise_help_html(self.game)
|
||||
|
||||
def loadImages1(self):
|
||||
# load dialog images
|
||||
|
|
|
@ -160,9 +160,21 @@ def help_html(app, document, dir_, top=None):
|
|||
viewer.parent.wm_deiconify()
|
||||
viewer.parent.tkraise()
|
||||
help_html_viewer = viewer
|
||||
raise_help_html(app.game)
|
||||
return viewer
|
||||
|
||||
|
||||
def raise_help_html(game):
|
||||
try:
|
||||
if game.app.opt.topmost_dialogs:
|
||||
help_html_viewer.parent.tkraise()
|
||||
help_html_viewer.parent.attributes("-topmost", True)
|
||||
else:
|
||||
help_html_viewer.parent.attributes("-topmost", False)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def destroy_help_html():
|
||||
try:
|
||||
help_html_viewer.destroy()
|
||||
|
|
|
@ -356,6 +356,9 @@ class FileMenuDialog(LMenuDialog):
|
|||
|
||||
self.make_favid_list(tv, rg)
|
||||
|
||||
tv.add_node(LTreeNode(
|
||||
text=_('Random game'),
|
||||
command=self.make_command(self.menubar.mSelectRandomGame)))
|
||||
tv.add_node(LTreeNode(
|
||||
text=_('Load'), command=self.make_command(self.menubar.mOpen)))
|
||||
tv.add_node(LTreeNode(
|
||||
|
|
Loading…
Add table
Reference in a new issue