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

57 commits

Author SHA1 Message Date
Joe R
4a3d6e7383 Delete game statistics when deleting a game 2024-09-19 21:41:56 -04:00
Alexandre Detiste
148f189a74
trim usage of six (#382)
This is artisanal manual craftwork :-)

     def mDone(self, button):
         if button == 0:        # "OK" or double click
-            if isinstance(self.tree.selection_key, six.string_types):
-                self.key = str(self.tree.selection_key)
-            else:
-                self.key = self.tree.selection_key
+            self.key = self.tree.selection_key
2024-09-18 20:33:10 -04:00
Joe R
efbb3489b3 Added Six by Six game. 2023-01-28 13:06:48 -05:00
Joe R
a438dc8861 Fixed import order. 2022-12-30 15:10:19 -05:00
Joe R
f3661a0aee Additional options and documentation for Solitaire Wizard. 2022-12-30 09:56:00 -05:00
Joe R
8f0d71eeea Fix for flake8. 2021-07-29 17:47:09 -04:00
Joe R
541b97b92f Added option to delete custom games. 2021-07-29 17:35:09 -04:00
Joe R
1025b5402b Minor wizard utility cleanup. 2021-05-23 15:38:04 -04:00
Shlomi Fish
ba735bf1a2 Try to fix issue #177 .
See: https://github.com/shlomif/PySolFC/issues/177 - custom game wizard
failure due to bytestring vs. unicode string. Thanks to @Neelix57 and
@Butterfly for the report and some investigation.
2021-05-23 14:02:48 -04:00
Shlomi Fish
9acc97be8a Refactoring / code cleanup.
See:

* https://en.wikipedia.org/wiki/Code_refactoring

* https://www.refactoring.com/

* https://www.joelonsoftware.com/2002/01/23/rub-a-dub-dub/

Some small optimisations may have slipped in as well.
2019-05-31 17:22:49 +03:00
Shlomi Fish
ed18fd8156 Order imports based on flake8-import-order.
Tested on ci. See https://github.com/PyCQA/flake8-import-order . In the
process did some other cleanups and
https://en.wikipedia.org/wiki/Code_refactoring .
2019-01-11 23:55:06 +02:00
Shlomi Fish
11bafeba44 use six.py. 2018-09-01 18:40:50 +03:00
Shlomi Fish
02eacbd413 Ran 2to3 on pysollib/[a-z]*.py 2017-04-28 14:42:43 +03:00
Shlomi Fish
73895c6bf3 flake 8 2017-04-19 12:03:44 +03:00
Shlomi Fish
99ef711af1 Change the licenses headers to please flake8. 2017-04-19 12:03:44 +03:00
Shlomi Fish
e2a6c00606 Merge remote-tracking branch 'jimsize/master' into pysolfc_modules_modularization
Conflicts:
	.gitignore
	Makefile
	pysollib/acard.py
	pysollib/actions.py
	pysollib/app.py
	pysollib/customgame.py
	pysollib/game.py
	pysollib/gamedb.py
	pysollib/games/__init__.py
	pysollib/games/auldlangsyne.py
	pysollib/games/braid.py
	pysollib/games/calculation.py
	pysollib/games/camelot.py
	pysollib/games/canfield.py
	pysollib/games/curdsandwhey.py
	pysollib/games/fan.py
	pysollib/games/golf.py
	pysollib/games/klondike.py
	pysollib/games/larasgame.py
	pysollib/games/mahjongg/mahjongg.py
	pysollib/games/mahjongg/shisensho.py
	pysollib/games/matriarchy.py
	pysollib/games/napoleon.py
	pysollib/games/numerica.py
	pysollib/games/osmosis.py
	pysollib/games/pileon.py
	pysollib/games/royalcotillion.py
	pysollib/games/special/memory.py
	pysollib/games/special/poker.py
	pysollib/games/special/tarock.py
	pysollib/games/spider.py
	pysollib/games/takeaway.py
	pysollib/games/terrace.py
	pysollib/games/threepeaks.py
	pysollib/games/tournament.py
	pysollib/games/ultra/dashavatara.py
	pysollib/games/ultra/hanafuda.py
	pysollib/games/ultra/hanafuda1.py
	pysollib/games/ultra/hanafuda_common.py
	pysollib/games/ultra/hexadeck.py
	pysollib/games/ultra/mughal.py
	pysollib/games/yukon.py
	pysollib/help.py
	pysollib/hint.py
	pysollib/images.py
	pysollib/init.py
	pysollib/layout.py
	pysollib/main.py
	pysollib/mfxutil.py
	pysollib/options.py
	pysollib/pysolgtk/colorsdialog.py
	pysollib/pysolgtk/fontsdialog.py
	pysollib/pysolgtk/menubar.py
	pysollib/pysolgtk/playeroptionsdialog.py
	pysollib/pysolgtk/selectcardset.py
	pysollib/pysolgtk/selectgame.py
	pysollib/pysolgtk/selecttile.py
	pysollib/pysolgtk/soundoptionsdialog.py
	pysollib/pysolgtk/statusbar.py
	pysollib/pysolgtk/timeoutsdialog.py
	pysollib/pysolgtk/tkhtml.py
	pysollib/pysolgtk/tkstats.py
	pysollib/pysolgtk/tkwidget.py
	pysollib/pysolrandom.py
	pysollib/pysoltk.py
	pysollib/resource.py
	pysollib/stack.py
	pysollib/stats.py
	pysollib/tile/colorsdialog.py
	pysollib/tile/edittextdialog.py
	pysollib/tile/findcarddialog.py
	pysollib/tile/fontsdialog.py
	pysollib/tile/gameinfodialog.py
	pysollib/tile/menubar.py
	pysollib/tile/playeroptionsdialog.py
	pysollib/tile/selectcardset.py
	pysollib/tile/selectgame.py
	pysollib/tile/selecttile.py
	pysollib/tile/solverdialog.py
	pysollib/tile/soundoptionsdialog.py
	pysollib/tile/statusbar.py
	pysollib/tile/timeoutsdialog.py
	pysollib/tile/tkconst.py
	pysollib/tile/tkhtml.py
	pysollib/tile/tkstats.py
	pysollib/tile/tkwidget.py
	pysollib/tile/toolbar.py
	pysollib/tile/ttk.py
	pysollib/tile/wizarddialog.py
	pysollib/tk/colorsdialog.py
	pysollib/tk/edittextdialog.py
	pysollib/tk/findcarddialog.py
	pysollib/tk/fontsdialog.py
	pysollib/tk/gameinfodialog.py
	pysollib/tk/menubar.py
	pysollib/tk/playeroptionsdialog.py
	pysollib/tk/selectcardset.py
	pysollib/tk/selectgame.py
	pysollib/tk/selecttile.py
	pysollib/tk/solverdialog.py
	pysollib/tk/soundoptionsdialog.py
	pysollib/tk/statusbar.py
	pysollib/tk/timeoutsdialog.py
	pysollib/tk/tkconst.py
	pysollib/tk/tkhtml.py
	pysollib/tk/tkstats.py
	pysollib/tk/tkwidget.py
	pysollib/tk/toolbar.py
	pysollib/tk/wizarddialog.py
	pysollib/util.py
	pysollib/winsystems/common.py
	pysollib/wizardpresets.py
	pysollib/wizardutil.py
	setup_osx.py
2012-12-07 16:32:30 +02:00
Shlomi Fish
56f8b04cad import customgame. 2012-11-25 18:58:04 +02:00
Shlomi Fish
ec3890995b Test and convert pysollib.layout. 2012-11-25 18:32:15 +02:00
Shlomi Fish
88634d2a8b import stack. 2012-11-25 18:16:06 +02:00
Shlomi Fish
884a44ceb0 gamedb. 2012-11-25 18:07:40 +02:00
Shlomi Fish
0785307eb8 Test import of pysollib.util. 2012-11-25 18:00:48 +02:00
skomoroh
2744887cd4 * changed comments style
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@243 efabe8c0-fbe8-4139-b769-b5e6d273206e
2009-07-22 21:36:22 +00:00
skomoroh
232dca18fb * changed comments style
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@243 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2009-07-22 21:36:22 +00:00
skomoroh
dfe790a101 * changed GPL version to 3
* added config-file option sound_sample_buffer_size
* bugfixes


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@234 efabe8c0-fbe8-4139-b769-b5e6d273206e
2009-06-12 09:32:43 +00:00
skomoroh
fb107c8727 * changed GPL version to 3
* added config-file option sound_sample_buffer_size
* bugfixes


git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@234 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2009-06-12 09:32:43 +00:00
skomoroh
de714447b6 + 3 new games
* bugfixes


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@211 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-09-13 21:20:38 +00:00
skomoroh
15d718705b + 3 new games
* bugfixes


git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@211 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-09-13 21:20:38 +00:00
skomoroh
273cce0a7d * added Spider_RK_Foundation to Solitaire Wizard
* minor fixes for py2exe


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@209 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-09-06 21:45:03 +00:00
skomoroh
a26182165c * added Spider_RK_Foundation to Solitaire Wizard
* minor fixes for py2exe


git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@209 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-09-06 21:45:03 +00:00
skomoroh
cb41d12357 + 3 new games
* renamed option squeeze_stacks to compact_stacks
* minor fixes


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@208 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-09-05 21:26:58 +00:00
skomoroh
5c2a04e6d0 + 3 new games
* renamed option squeeze_stacks to compact_stacks
* minor fixes


git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@208 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-09-05 21:26:58 +00:00
skomoroh
3b6fe2ad4e * updated russian translation
* fixed menubar
* minor fixes


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@206 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-09-01 21:26:01 +00:00
skomoroh
e041581b0b * updated russian translation
* fixed menubar
* minor fixes


git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@206 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-09-01 21:26:01 +00:00
skomoroh
9d7698ecf1 * minor fixes
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@205 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-08-31 21:30:22 +00:00
skomoroh
7b547c2844 * minor fixes
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@205 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-08-31 21:30:22 +00:00
skomoroh
adcf65dca4 * bugfixes
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@180 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-07-01 21:29:51 +00:00
skomoroh
92105ae74f * bugfixes
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@180 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-07-01 21:29:51 +00:00
skomoroh
6c30899fd9 * improved look for x11
* renamed option `separatorwidth' to `separator' (dialogs)


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@179 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-06-30 21:24:04 +00:00
skomoroh
116e119c5f * improved look for x11
* renamed option `separatorwidth' to `separator' (dialogs)


git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@179 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-06-30 21:24:04 +00:00
skomoroh
9eaeadce61 * fixed scrolling in MfxScrolledCanvas
* added clickable url to About dialog
* many other improvements and bugfixes


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@173 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-06-09 21:59:16 +00:00
skomoroh
55bbfdddb2 * fixed scrolling in MfxScrolledCanvas
* added clickable url to About dialog
* many other improvements and bugfixes


git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@173 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-06-09 21:59:16 +00:00
skomoroh
f704ddd02b + added ngettext support
* updated russian translation


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@164 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-11 21:58:22 +00:00
skomoroh
600684acae + added ngettext support
* updated russian translation


git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@164 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-11 21:58:22 +00:00
skomoroh
7601a8a27d * improved solitaire wizard
* updated russin translation


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@163 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-10 21:16:12 +00:00
skomoroh
a9a4923e84 * improved solitaire wizard
* updated russin translation


git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@163 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-10 21:16:12 +00:00
skomoroh
2022dbe599 * improved solitaire wizard
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@162 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-08 21:21:33 +00:00
skomoroh
e7714af87e * improved solitaire wizard
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@162 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-08 21:21:33 +00:00
skomoroh
ccc11cb64d * improved solitaire wizard
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@161 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-07 22:12:54 +00:00
skomoroh
4117e41bb0 * improved solitaire wizard
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@161 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-07 22:12:54 +00:00
skomoroh
a7e7aab703 * improved solitaire wizard
* removed round changes from turnStackMove


git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@160 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-06 21:42:40 +00:00