Shlomi Fish
3ce33272ba
reformat and fix trailing-space test
2020-11-12 12:52:53 +02:00
Shlomi Fish
3839df7579
svg : better resize.
2020-11-12 11:40:49 +02:00
Shlomi Fish
7a4b40985a
fix the function
2020-11-12 11:40:49 +02:00
Shlomi Fish
4d1d1a2985
Allow customisation using an env var.
2020-11-12 11:40:49 +02:00
Shlomi Fish
84c760fc93
add parameterisation to the theme name.
2020-11-12 11:40:49 +02:00
Shlomi Fish
0ba65a1050
Rename to make more appropriate.
2020-11-12 11:40:49 +02:00
Shlomi Fish
d7d211b8a7
travis fix: resolve missing cairo dep
2020-11-12 11:40:49 +02:00
Shlomi Fish
497bce52d2
fix tests and py2 support
2020-11-12 11:38:49 +02:00
Shlomi Fish
487d646cce
got the svg cards to work as a PoC.
...
See https://github.com/shlomif/PySolFC/issues/3 .
2020-11-12 11:38:49 +02:00
Shlomi Fish
5cc6ff5ffc
progress with the svg.
2020-11-12 11:38:49 +02:00
Shlomi Fish
b4f76613a9
trying to get a qpixmap from libkcardgame.
2020-11-12 11:38:49 +02:00
Shlomi Fish
3ca42f2b26
got tiny images to show.
2020-11-12 11:38:49 +02:00
Shlomi Fish
869bcece37
hacky way to load svg fragments
...
does not work quite right - it is a start.
2020-11-12 11:38:41 +02:00
Shlomi Fish
f5690a3285
load individual IDs.
2020-11-12 11:36:39 +02:00
Shlomi Fish
9b17c4f8b7
add svg loading code from stackoverflow.
...
Starting work on https://github.com/shlomif/PySolFC/issues/3 .
2020-11-12 11:36:39 +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