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

1386 commits

Author SHA1 Message Date
Shlomi Fish
513726360d fix flake8 validation 2020-05-06 15:22:47 +03:00
Shlomi Fish
52d37cfeae fix merged code 2020-05-06 15:13:08 +03:00
Shlomi Fish
c7a3907d25 add missing attribute.
See https://github.com/shlomif/PySolFC/issues/129 .
2020-05-06 15:13:08 +03:00
Shlomi Fish
8244d19e6e start writing the kpat emitter. 2020-05-06 15:13:05 +03:00
Shlomi Fish
70123aaa5d Require a minimal version of "attr".
See: https://github.com/shlomif/PySolFC/issues/159 . Thanks to
@radub7 for the report.
2020-05-06 15:11:25 +03:00
Shlomi Fish
9666c56a9f Python2 compatibility: travis rebuild for new pysol-cards 2020-05-06 15:11:25 +03:00
Shlomi Fish
6f591dd519 typo 2020-05-06 15:11:25 +03:00
Shlomi Fish
bce3354f3d move to upstream PyPI pysol_cards 2020-05-06 15:11:25 +03:00
Shlomi Fish
abc9c2c3aa move to upstream PyPI pysol_cards 2020-05-06 15:11:25 +03:00
Shlomi Fish
90d36213e8 move to upstream PyPI pysol_cards 2020-05-06 15:11:25 +03:00
Shlomi Fish
b90b3ed1e1 move to upstream PyPI pysol_cards 2020-05-06 15:11:25 +03:00
Juhani Numminen
8dbd5c552f Retire pysol.xbm & .xpm & the unused code that uses them 2020-05-06 15:11:25 +03:00
Shlomi Fish
bf620c6310 new 2.8.0 release 2020-05-06 15:11:25 +03:00
Juhani Numminen
cc9adb6813 travis osx: Install python3 from python.org & build Pillow from source
Unlike python of Homebrew, the python.org version comes bundled with
a recent Tk that is much less buggy than macOS stock Tk.

py2app does not seem to work with Pillow's pypi wheels.
2020-05-06 15:11:25 +03:00
Juhani Numminen
18d3b2713a Work around Playable Preview launching unresponsive help window 2020-05-06 15:11:25 +03:00
Juhani Numminen
0a220861a9 Playable preview: swap incorrect actions for Rules and Cancel buttons
Line 435 assigns id 10 (not 1) to the Rules button.
2020-05-06 15:11:25 +03:00
Juhani Numminen
42ede36daf No such thing as pysollib.app.comments (#153) 2020-05-06 15:11:25 +03:00
Juhani Numminen
451e5a5003 Fix command line option error message
TypeError: unsupported operand type(s) for +: 'GetoptError' and 'str'
caused by commit 65b86f2d1d
2020-05-06 15:11:25 +03:00
Juhani Numminen
928c8a2819 Fix py2 compatibility: wm_iconphoto does not exist in python2.7 2020-05-06 15:11:25 +03:00
Juhani Numminen
89a6728bf8 Load icons from either images/misc or images/icons 2020-05-06 15:11:25 +03:00
Juhani Numminen
55edd37a72 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-05-06 15:11:25 +03:00
Shlomi Fish
c6d093d995 Prepare for 2.8.0 release.
See https://github.com/shlomif/PySolFC/issues/151 .

Not releasing yet.
2020-05-06 15:11:25 +03:00
lufebe16
b92091d1c3 Apk build scripts
- refactoring
2020-05-06 15:11:25 +03:00
Shlomi Fish
b26786a877 appveyor: fix invocation 2020-05-06 15:11:24 +03:00
Shlomi Fish
4b7df34d67 pin the fcs version - reproducible builds 2020-05-06 15:11:24 +03:00
Shlomi Fish
a004f7e690 fix tidyall/flake8 tests 2020-05-06 15:11:24 +03:00
lufebe16
ccacdbe148 Apk build scripts
- updated for use with p4a version 2019.10.6.
- additions to build instructions.
2020-05-06 15:11:24 +03:00
lufebe16
9169297801 Updates kivy version:
- added support for right mouse button (desktop only)
- corrected a problem with virtualenv in mkp4a.init
2020-05-06 15:11:24 +03:00
Shlomi Fish
586cd4a05f Add python3 PATH for pip3 on macOS.
The travis-CI builds have been failing and this is an attempt to fix them.
2020-05-06 15:11:24 +03:00
Shlomi Fish
ce72838aff Add python3 to homebrew on macOS.
The travis-CI builds have been failing and this is an attempt to fix them.
2020-05-06 15:11:24 +03:00
Shlomi Fish
3649a52ab2 SHOULD_PUT_bye_for_now_FIRST = False
To avoid complaints about non random music.
2020-05-06 15:11:24 +03:00
Juhani Numminen
3f660b25a0 Import ttk from standard library, drop local copy 2020-05-06 15:11:24 +03:00
Juhani Numminen
ca93af4897 Fix whitespace in pyramid.py 2020-05-06 15:11:24 +03:00
lufebe16
2fea665242 Corrections on game 'pyramid'
- For TypeError reported with #147. (clickhandler failed to return a value)
- For index out of range (in pyramid.y)
2020-05-06 15:11:24 +03:00
Juhani Numminen
d0ff5494d5 Fix 'TclError: unknown option' for tk
Partly reverts commit b9a46ecf35
2020-05-06 15:11:24 +03:00
Juhani Numminen
3793d8392e Do not catch exceptions too broadly in mainloop
StopIteration seems to be the expected way to stop, at least
for the tk and tile interfaces.
2020-05-06 15:11:24 +03:00
Juhani Numminen
0fd5e40b54 Fix menu colors on macOS with dark menu bar
Widget colors and all scrollbars look just fine without these lines
despite the comments.
2020-05-06 15:11:24 +03:00
Shlomi Fish
2c16d5773d fix a crash on "open game" 2020-02-09 11:42:44 +02:00
Shlomi Fish
eb5e97acc7 Refactoring / code cleanup.
Use a frozenset()-like list.

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.
2020-02-09 11:39:40 +02:00
Shlomi Fish
8078db9abc fix load/save 2020-02-09 11:39:40 +02:00
Juhani Numminen
74016ff224 README: Change venv to reference PKGTREE and list more pre-requisites (#149) 2020-02-09 11:39:40 +02:00
Juhani Numminen
f96ceb57a0 install-pysolfc.sh: Use bash array for holding a program name and arguments
The previous scalar variable with quoted "$PIP" caused a "command not found"
error because that erroneously put prog name and arguments in a single token.
2020-02-09 11:39:40 +02:00
Shlomi Fish
d90bbdab2e Add 13 column Bisley - thanks to qunka.
See:

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

* https://gist.github.com/qunka/3adac1878b481eb419ff6f3e1726add5

Thanks to https://github.com/qunka .
2020-02-09 11:39:40 +02:00
Shlomi Fish
70012407b0 Extract a function or class to step away from God Object.
See:

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

* https://www.c-sharpcorner.com/article/god-object-a-code-smell/ .

This is Refactoring / code cleanup.

See:

* https://refactoring.com/catalog/extractMethod.html

* 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.
2020-02-09 11:39:40 +02:00
Shlomi Fish
93d8c2a564 Extract a function or class to step away from God Object.
See:

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

* https://www.c-sharpcorner.com/article/god-object-a-code-smell/ .

This is Refactoring / code cleanup.

See:

* https://refactoring.com/catalog/extractMethod.html

* 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.
2020-02-09 11:39:40 +02:00
Shlomi Fish
85545dd67c avoid leftover py2 test files. 2020-02-09 11:39:40 +02:00
Shlomi Fish
4e7a01517a Extract a function or class to step away from God Object.
See:

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

* https://www.c-sharpcorner.com/article/god-object-a-code-smell/ .

This is Refactoring / code cleanup.

See:

* https://refactoring.com/catalog/extractMethod.html

* 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.
2020-02-09 11:39:40 +02:00
Shlomi Fish
b4947cccce appveyor fix #1 - temply invalidate caches 2020-02-09 11:39:40 +02:00
Topi Miettinen
879709d682 Skiz help: fix typo
decending -> descending
2020-02-09 11:39:40 +02:00
Shlomi Fish
2bf9b249cc move functionality to pysol-cards PyPI module 2020-02-09 11:39:40 +02:00