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

84 commits

Author SHA1 Message Date
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
Shlomi Fish
04a9b4c910 Handle the utf-8 BOM in the import. 2018-04-30 20:33:23 +03:00
Shlomi Fish
3e595ae183 Add a Ctrl+Z undo shortcut.
See https://github.com/shlomif/PySolFC/issues/71 . It is the more
standard one.
2018-04-16 02:37:23 +03:00
Shlomi Fish
6415c5fead Fix crashes on invalid max_iters input.
See https://github.com/shlomif/PySolFC/issues/73 .
2018-04-12 11:03:56 +03:00
Shlomi Fish
a02f7dc89b Fix a typo. 2018-04-10 13:43:20 +03:00
Shlomi Fish
1e8b1bfb1b flake8 2018-03-21 10:45:12 +02:00
Roderik Ploszek
b937349deb Fix formatting 2018-02-24 23:29:29 +01:00
Roderik Ploszek
e543490cfd Fix error message when solver isn't in the path
See https://github.com/shlomif/PySolFC/issues/51
2018-02-24 21:09:20 +01:00
Shlomi Fish
cb316a20fe Add more. 2017-12-19 13:49:15 +02:00
Shlomi Fish
ab98966d9c Remove debugging hard code. 2017-12-19 13:39:22 +02:00
Shlomi Fish
a803849b35 Working now - import board.
Mostly at least.
2017-12-18 21:52:29 +02:00
Shlomi Fish
3fc989ae0a Start implementing board import.
See https://github.com/shlomif/PySolFC/issues/47 .
2017-12-18 20:47:10 +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
5c85816641 Remember the solver's max iterations setting.
See https://github.com/shlomif/PySolFC/issues/38 .
2017-11-04 18:18:13 +02:00
Shlomi Fish
b887d6042b Made flake8 happier.
Removed __all__ and stuff - we use explicit imports now.
2017-09-18 13:04:53 +03:00
Shlomi Fish
1dec576b1a Add persistence for solver show progress.
See https://github.com/shlomif/PySolFC/issues/38 :

<<<
Currently the solver dialog (Assist → Solver when playing Freecell or
other supported games) does not remember its "Preset" , "Max Iterations"
and "Show Progress" settings - either across sessions of PySol or even
after closing and invoking it again. It should remember those but note
that it should not remember the "Game" setting because one can switch to
a different game.
>>>
2017-08-25 22:28:25 +03:00
Shlomi Fish
dbdd0f392c division sanity 2017-08-25 18:25:58 +03:00
Shlomi Fish
03b8abf352 Fix the help display in py3. 2017-08-25 18:25:58 +03:00
Shlomi Fish
aad8429366 Port htmllib to py 3 as pysollib.htmllib2.
The help is somewhat buggy on python 3 still.
2017-08-25 18:25:58 +03:00
Shlomi Fish
779c703709 Convert Canvas.py to Canvas2 under pysollib. 2017-08-25 18:25:58 +03:00
Shlomi Fish
dbf04ad300 fix the tests 2017-08-25 18:25:58 +03:00
Shlomi Fish
aa4f9ee5da Crude code to get some func running in py3.
Right now klondike and freecell sort of work, but this is very hacky and
there are many leftover debug traces.
2017-08-25 18:25:58 +03:00
Shlomi Fish
763477d218 Fix SaveAs/Open/etc.
We used the wrong python-six import.
2017-06-02 21:44:17 +03:00
Shlomi Fish
e6894094ec 2to3 on pysollib/ui/tktile/*.py 2017-05-24 17:08:05 +03:00
Shlomi Fish
ce6f5613a3 sixify tkfont. 2017-05-22 19:03:18 +03:00
Shlomi Fish
72a2591ec1 Preemptive tkinter conversion to py2/py3.
Using the six module. Did it before 2to3 reports it.
2017-05-22 18:38:20 +03:00
Shlomi Fish
ec17c0743c Remove some unused code.
It was assigned but never used because we removed this dropdown because
it was redundant.
2017-05-22 17:18:26 +03:00