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

110 commits

Author SHA1 Message Date
Joe R
f5dcfe2979 Fix for Mahjongg game short name sorting. 2022-03-09 19:49:54 -05:00
Joe R
72c979d00f Added Pillow logic for creating missing images. 2022-02-20 11:01:42 -05:00
Joe R
e81257ebd0 Don't mask unknown images. 2022-02-18 19:47:04 -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
1031f3f562 Organized menu bar and updated POT translations for latest games. 2022-02-12 11:50:19 -05:00
Joe R
fd694be7b2 Exposed toolbar icon size option. 2022-02-08 22:42:06 -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
b98bdbbe23 Updated POT. 2022-01-20 21:44:02 -05:00
Joe R
27e2813d0e Exposed the Randomize Card Placement option. 2022-01-20 17:21:24 -05:00
Joe R
3f9853f7ec Fixed HTTPS linking in the documentation. 2021-12-28 17:13:02 -05:00
Joe R
14658b9a6c Restored "What's New?" documentation page, properly updated for PySolFC. 2021-12-28 14:02:12 -05:00
Joe R
393de563a7 Some minor menubar cleanup. 2021-12-20 19:27:19 -05:00
Joe R
88201c0ca6 Updated POT file. 2021-12-10 22:23:27 -05:00
Joe R
8cab449500 Updated POT files. 2021-12-09 19:31:06 -05:00
Joe R
7af8fde4c0 Revamped Pegged game and added manual first card removal option. 2021-12-02 20:40:44 -05:00
Joe R
962dc3ffeb Re-enabled toolbar style selection option. 2021-11-19 17:57:59 -05:00
Joe R
d6ca9c9e25 Fix for issue #226. 2021-10-11 21:45:52 -04:00
Joe R
ff30f50bfe Reset table tile when changing card size. (Fix for #222) 2021-09-11 12:59:17 -04:00
Joe R
faa474dd0b Added option to reset card scaling. 2021-09-11 09:54:44 -04:00
Joe R
13d34238e2 Fixed window/tree scaling on smaller screens. 2021-09-09 20:09:29 -04:00
Joe R
36a0bfbc14 Fixed up some sections of the documentation. 2021-09-04 10:07:08 -04:00
Shlomi Fish
79d27d2749 issue217 : formatting.py deprecated fix.
This file is derived from /usr/lib/python3.9/formatter.py . All changes
are placed under CC0.

See:

* https://github.com/shlomif/PySolFC/issues/217

* https://bugzilla.redhat.com/show_bug.cgi?id=1990043
2021-08-19 07:21:15 +03:00
Joe R
896454d1e4 Added Preserve aspect ratio option to the menu. 2021-08-05 17:29:15 -04:00
Joe R
541b97b92f Added option to delete custom games. 2021-07-29 17:35:09 -04:00
Joe R
d9c98ae017 Added Accordion's Revenge game. 2021-07-17 09:39:57 -04:00
Juhani Numminen
e04440a625 Fix CapsLock preventing use of single-letter keybindings (issue #141)
The code block in question can be removed because Tk will decide whether it
reports us an event with e.g. Ctrl-R or just the R key.

https://www.tcl.tk/man/tcl8.4/TkCmd/bind.html
in section MULTIPLE MATCHES; "[...] the most specific binding is chosen [...]"
2021-07-08 12:20:37 +03:00
Joe R
c416d42a96 Removed deal animation from preview and combined game select options. 2021-06-08 21:54:15 -04:00
Joe R
72ff4f6079 Added option to center the game layout on the screen. 2021-05-16 11:13:50 -04:00
Joe R
58a31f8abb Added enable/disable music option. 2021-05-03 23:33:19 -04:00
Joe R
dba55c20fd Split spread stacks logic from auto-scale logic. 2021-04-25 08:51:04 +03:00
Guillaumegaillard
5876134d11 Make auto_scale spread non-talon stacks on canvas
make card size, scale and canvas changes independent
check scale x after change cardset
2020-11-23 16:26:22 +02:00
Shlomi Fish
7da41a93be Allow to swap the mouse keys using the ini file.
See: https://sourceforge.net/p/pysolfc/discussion/503708/thread/5d77434ff8/

" PySolFC / Discussion / Open Discussion: Any way to remap mouse buttons? "

We may not have covered all the affected calls to bind().
2020-10-19 18:18:13 +03:00
Juhani Numminen
24ccdf634b macOS: use "PySolFC Help" menuitem provided by tk
The details are explained in this tutorial
https://tkdocs.com/tutorial/menus.html

For this to work, init() must destroy the tkinter.Tk instance it creates
so that was uncommented.
2020-10-14 14:59:38 +03:00
Shlomi Fish
95a0d7d007 refactor/modernize the calls to open()
use "with", flags
2020-10-06 18:43:15 +03:00
Shlomi Fish
3de9955879 try2fix flake 8 tests [travis/etc.] 2020-06-17 20:53:11 +03:00
Juhani Numminen
f5b1cf0eea Tk: set window icon
make_help_toplevel changed from Tk to Toplevel since Tk creates another
Tcl interpreter, causing errors like this:
'_tkinter.TclError: can't use "pyimage228" as iconphoto: not a photo image'

1024x1024 logo file is renamed because it has large margins on each side
which is unsuitable for a window icon.
2020-02-28 20:16:58 +02:00
Juhani Numminen
65b86f2d1d Improve internationalization
- More strings marked for translation
- Used format strings instead of concatinating fragments
- Removed space before '?' or '!' from sentences in English

Following the GNU gettext guidelines at
https://www.gnu.org/software/gettext/manual/gettext.html#Preparing-Strings
2019-08-31 13:22:21 +03:00
Shlomi Fish
1d3ffc4e1d Try fixing issue #108 - compat with pillow 6.0
See https://github.com/shlomif/PySolFC/issues/108 .
2019-04-05 17:37:04 +03:00
Shlomi Fish
80252696c8 try restore Save game geometry on USE_PIL.
See https://github.com/shlomif/PySolFC/issues/84 .
2019-04-04 12:39:24 +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
77bd206a4e feature: made the current solver preset persistent.
let it stick.
2018-09-01 19:07:00 +03:00
Shlomi Fish
2bbea25a42 Clarify the solver dialog msg on hint-on-intract
so people will not think it was solved.
2018-08-04 17:40:36 +03:00
Shlomi Fish
02edf2afdd Made the iters_output_step configurable. 2018-08-01 19:50:31 +03:00
Shlomi Fish
4f5d365763 Fix the problem with exiting after fail import 2018-05-07 23:57:46 +03:00
Shlomi Fish
74bfe5e96b handle more gracefully.
It still will not quit.
2018-05-07 23:34:45 +03:00
Shlomi Fish
4b75005b28 Start adding support for handling parse errs.
in the importFile feature. Still does not work fully.
2018-05-07 23:29:14 +03:00
Shlomi Fish
e915b6daef configurable filename. 2018-05-01 14:45:22 +03:00
Shlomi Fish
23001f0f0f Add support for "10" instead of "T".
See https://github.com/shlomif/PySolFC/issues/79 .
2018-04-30 22:53:49 +03:00