Joe R
552585f143
Catch error when a cardset image fails to load
2024-11-08 21:26:23 -05:00
lufebe16
87fe16413e
Kivy/Android
...
- refactoring
2024-01-08 14:54:12 +01:00
Joe R
fb25046868
Spacing updates for flake8.
2023-08-11 20:56:29 -04:00
Joe R
8d575bb747
Added image resampling option.
2022-07-06 18:39:48 -04:00
Joe R
9d303d265d
Code to prevent error when letters are missing.
2022-03-02 21:49:38 -05:00
Joe R
72c979d00f
Added Pillow logic for creating missing images.
2022-02-20 11:01:42 -05:00
Joe R
4c2dd59928
Added config option to use cardset bottoms.
2022-02-18 21:13:41 -05:00
cardset
4ad11dc85a
masking bottoms
...
Should mask now load bottoms, resize bottoms and subsample.
Separated load bottoms from resize bottoms
2022-02-18 19:37:40 -05:00
Joe R
42b97cf1ed
Fix for preview bottoms and undo in Cruel.
2022-02-06 18:20:14 -05:00
cardset
dc98900763
changes because of slow loading of bottoms
...
Because ImageTK.PhotoImage and Image.resizing have problems witht zeros in alphachannel, i masked the image to eliminate the 0s
2022-01-24 14:48:17 +01:00
Joe R
2aec2ea9b1
Fix for crash in game preview.
2021-06-26 08:50:51 -04:00
Joe R
5aa9071893
Improved playable preview display for large monitors and when working with high resolution cardsets.
2021-06-20 15:45:39 -04:00
Juhani Numminen
0be465dea1
Add error message for a missing card back ( #185 )
2020-10-10 21:22:58 +03:00
Shlomi Fish
3de9955879
try2fix flake 8 tests [travis/etc.]
2020-06-17 20:53:11 +03:00
Shlomi Fish
91e5cdafa3
Fix the indentation.
...
See http://perl-begin.org/tutorials/bad-elements/#no-indentation .
2019-02-19 17:14:17 +02: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
a1219f6db1
print a warning to help w debugging cardset load.
...
See https://github.com/shlomif/PySolFC/issues/83 .
2018-05-20 15:19:45 +03:00
Roderik Ploszek
0b2e22c452
Fix exception when changing games in preview
...
When changing games from Mahjongg to French type with Mahjongg cardset
active, an exception would occur. This was caused by 1d43029
.
2018-04-15 15:02:16 +02:00
Roderik Ploszek
1d4302990e
Fix cardsets with not enough bottoms
...
Playing Hanafuda games that use all 12 card bottoms, e.g. Sumo with
Hanafuda cardsets that have fewer bottoms (Kintengu or Oonsoo) causes an
exception when using PIL or the foundations with missing bottoms don't
show up in PySol without PIL. This fix creates empty replacement images
for foundations where the bottom is not present.
2018-04-15 13:00:42 +02:00
lb@lb520
91ef11b7ac
Implementation of createBottom in kivy.
...
A first set of Python 3 adaptations.
Added a choice of cardsets to android build.
Added new scripts to tarball (MAKEFILE.in)
2018-03-14 19:33:02 +01:00
lb@lb520
b5ef9b6214
Added an alternate toolkit kivy (based on SDL2) that can be used instead of tk.
...
Added scripts to build an android app.
2018-03-03 20:37:56 +02:00
Shlomi Fish
38bfb88971
Made the new flake8 and travis happier.
...
Fix the warnings.
2017-11-04 20:15:52 +02:00
Shlomi Fish
e90b48104d
Division sanitize.
2017-08-25 18:25:58 +03:00
Shlomi Fish
8c4887b70b
flake 8
2017-04-19 12:03:44 +03:00
Shlomi Fish
4da89ccc8c
Get rid of trailing space.
2013-05-22 12:57:18 +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
55cc8995ae
pysoltk.
2012-11-25 19:12:33 +02:00
Shlomi Fish
03c83d7900
Convert to pysollib.resource.
...
This also includes a sys.path.insert(0, ...) fix (to prepend) instead of
sys.append in order to fix finding pysollib/__init.py__ in the global
path.
2012-11-25 17:55:43 +02:00
Shlomi Fish
308ede18ff
Convert mfxutil and settings imports to pysollib
2012-11-25 17:05:22 +02:00
skomoroh
cbd51240c5
added settings for offsets of cards; bugfixes
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@277 efabe8c0-fbe8-4139-b769-b5e6d273206e
2012-06-05 18:37:12 +00:00
skomoroh
b2d65b7682
added settings for offsets of cards; bugfixes
...
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@277 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2012-06-05 18:37:12 +00:00
skomoroh
24c0b00c0d
* scalable cards (req: PIL >= 1.1.7)
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@263 efabe8c0-fbe8-4139-b769-b5e6d273206e
2011-03-06 06:33:38 +00:00
skomoroh
0e3dccb247
* scalable cards (req: PIL >= 1.1.7)
...
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@263 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2011-03-06 06:33:38 +00:00
skomoroh
67206a0aa8
* improved stacks bottom
...
* bug fixes
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@246 efabe8c0-fbe8-4139-b769-b5e6d273206e
2009-08-05 16:46:12 +00:00
skomoroh
b30c62ba65
* improved stacks bottom
...
* bug fixes
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@246 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2009-08-05 16:46:12 +00:00
skomoroh
46d321f6fa
+ one new game
...
* added quick play for foundations
* improved cards shadow
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@245 efabe8c0-fbe8-4139-b769-b5e6d273206e
2009-08-04 13:34:02 +00:00
skomoroh
50d86dcff6
+ one new game
...
* added quick play for foundations
* improved cards shadow
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@245 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2009-08-04 13:34:02 +00: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
26f2fe277b
* fixed game Spaces and Aces
...
* improved cards shadowing
* minor fixes
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@238 efabe8c0-fbe8-4139-b769-b5e6d273206e
2009-06-27 07:25:24 +00:00
skomoroh
1927232d68
* fixed game Spaces and Aces
...
* improved cards shadowing
* minor fixes
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@238 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2009-06-27 07:25:24 +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
06a6d7492e
* improved mahjongg tile highlighting
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@202 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-08-29 21:23:19 +00:00
skomoroh
95655910b2
* improved mahjongg tile highlighting
...
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@202 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-08-29 21:23:19 +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
8a2616449e
* cleanup code
...
* bugfixes
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@171 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-05-26 21:17:19 +00:00
skomoroh
980d06a337
* cleanup code
...
* bugfixes
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@171 39dd0a4e-7c14-0410-91b3-c4f2d318f732
2007-05-26 21:17:19 +00:00
skomoroh
98849947b2
+ 3 new games
...
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@144 efabe8c0-fbe8-4139-b769-b5e6d273206e
2007-02-28 22:52:01 +00:00