1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Compare commits

...

4 commits

Author SHA1 Message Date
Joe R
a6827ee7e2 Update game count in intro documentation 2025-01-06 23:02:26 -05:00
Joe R
5d1ed621e3 Allow resizing of log and comments windows 2025-01-06 18:28:00 -05:00
Joe R
4c031b9686 Fix undumping of random states 2025-01-04 12:55:38 -05:00
Joe R
2c69371265 Update copyright year to 2025 2025-01-04 12:08:06 -05:00
13 changed files with 26 additions and 19 deletions

View file

@ -5,7 +5,7 @@ The answer is simple...
<h3>PySol highlights</h3>
<ul>
<li> currently supports more than 1000 distinct solitaire games
<li> currently supports more than 1,200 distinct solitaire games
<li> based upon an extensible solitaire engine
<li> lots of classic games like Forty Thieves, FreeCell, Klondike and Spider
<li> special games like Ganjifa, Hanafuda, Poker and Tarock type games
@ -24,7 +24,7 @@ The answer is simple...
<li> integrated HTML help browser
<li> lots of documentation
<li> portable across Windows, Mac, and Linux
<li> completely ad-free
<li> completely ad-free, now and forever
<li> written in 100% pure Python
<li> distributed under the terms of the GNU General Public License
<li> <i>Commercial Quality Freeware</i>

View file

@ -679,7 +679,7 @@ msgid ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"All Rights Reserved.\n"
"\n"
"PySol is free software distributed under the terms\n"

View file

@ -685,7 +685,7 @@ msgid ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"All Rights Reserved.\n"
"\n"
"PySol is free software distributed under the terms\n"
@ -700,7 +700,7 @@ msgstr ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"Tous droits réservés.\n"
"\n"
"PySol est un logiciel libre distribué sous la licence\n"

View file

@ -691,7 +691,7 @@ msgid ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"All Rights Reserved.\n"
"\n"
"PySol is free software distributed under the terms\n"
@ -706,7 +706,7 @@ msgstr ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"Tutti i diritti riservati.\n"
"\n"
"PySol è software libero distribuito alle condizioni\n"

View file

@ -683,7 +683,7 @@ msgid ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"All Rights Reserved.\n"
"\n"
"PySol is free software distributed under the terms\n"
@ -698,7 +698,7 @@ msgstr ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"All Rights Reserved.\n"
"\n"
"PySol jest wolnym oprogramowaniem rozprowadzanym\n"

View file

@ -682,7 +682,7 @@ msgid ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"All Rights Reserved.\n"
"\n"
"PySol is free software distributed under the terms\n"
@ -697,7 +697,7 @@ msgstr ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"Todos os direitos reservados.\n"
"\n"
"PySol é um software livre distribuído sob os termos\n"

View file

@ -657,7 +657,7 @@ msgid ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"All Rights Reserved.\n"
"\n"
"PySol is free software distributed under the terms\n"

View file

@ -688,7 +688,7 @@ msgid ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"All Rights Reserved.\n"
"\n"
"PySol is free software distributed under the terms\n"
@ -703,7 +703,7 @@ msgstr ""
"Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.\n"
"Copyright (C) 2003 Mt. Hood Playing Card Co.\n"
"Copyright (C) 2005 - 2009 Skomoroh.\n"
"Copyright (C) 2020 - 2024 PySolFC.\n"
"Copyright (C) 2020 - 2025 PySolFC.\n"
"All Rights Reserved.\n"
"\n"
"PySol свободное программное обеспечение,\n"

View file

@ -555,7 +555,8 @@ class PysolMenubar(PysolMenubarTk):
'id': game.getGameNumber(format=1)}
cc = _("Comments for %(game)s %(id)s:\n\n") % kw
c = game.gsaveinfo.comment or cc
d = EditTextDialog(game.top, _("Comments for %(id)s") % kw, text=c)
d = EditTextDialog(game.top, _("Comments for %(id)s") % kw, text=c,
resizable=True)
if d.status == 0 and d.button == 0:
text = d.text
if text.strip() == cc.strip():
@ -644,13 +645,15 @@ class PysolMenubar(PysolMenubarTk):
elif mode == 103:
header = (_("%(app)s Demo Full log") if demo
else _("Full log for %(player)s")) % transkw
d = FullLog_StatsDialog(self.top, header, self.app, player)
d = FullLog_StatsDialog(self.top, header, self.app, player,
resizable=True)
gameid = d.selected_game
gamenum = d.selected_game_num
elif mode == 104:
header = (_("%(app)s Demo Session log") if demo
else _("Session log for %(player)s")) % transkw
d = SessionLog_StatsDialog(self.top, header, self.app, player)
d = SessionLog_StatsDialog(self.top, header, self.app, player,
resizable=True)
gameid = d.selected_game
gamenum = d.selected_game_num
elif mode == 105:

View file

@ -3368,7 +3368,7 @@ class Game(object):
state = pload()
if (game.random is not None and
not isinstance(game.random, random.Random) and
isinstance(state, int)):
isinstance(state, tuple)):
game.random.setstate(state)
# if not hasattr(game.random, "origin"):
# game.random.origin = game.random.ORIGIN_UNKNOWN

View file

@ -56,7 +56,7 @@ def help_about(app, timeout=0, sound=True):
Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.
Copyright (C) 2003 Mt. Hood Playing Card Co.
Copyright (C) 2005 - 2009 Skomoroh.
Copyright (C) 2020 - 2024 PySolFC.
Copyright (C) 2020 - 2025 PySolFC.
All Rights Reserved.
PySol is free software distributed under the terms

View file

@ -514,6 +514,8 @@ class LogDialog(MfxDialog):
title = _('Log')
MfxDialog.__init__(self, parent, title, kw.resizable, kw.default)
self.top.wm_minsize(400, 200)
self.selected_game = None
self.selected_game_num = None

View file

@ -11,6 +11,8 @@ class BaseEditTextDialog:
self, parent, title, kw.resizable, kw.default)
top_frame, bottom_frame = self.createFrames(kw)
self.createBitmaps(top_frame, kw)
self.top.wm_minsize(300, 150)
#
self.text_w = tkinter.Text(top_frame, bd=1, relief="sunken",
wrap="word", width=64, height=16)