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

1502 commits

Author SHA1 Message Date
Shlomi Fish
3ce33272ba reformat and fix trailing-space test 2020-11-12 12:52:53 +02:00
Shlomi Fish
6d9c6b272b fix build on fedora 33 2020-11-12 12:33:31 +02:00
Shlomi Fish
73088a0a19 fix flake8/double-import 2020-11-12 11:43:00 +02:00
Shlomi Fish
3839df7579 svg : better resize. 2020-11-12 11:40:49 +02:00
Shlomi Fish
80672d8d41 Add README_svg . 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
c7ad9be8ab Refactoring / code cleanup.
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-11-12 11:40:49 +02:00
Shlomi Fish
06e7038680 refactor. 2020-11-12 11:40:49 +02:00
Shlomi Fish
30be9f2f9e Refactored cmake. 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
c40d678b9e travis fix #2: deps names 2020-11-12 11:39:48 +02:00
Shlomi Fish
0f74d9e193 travis fix #1: deps 2020-11-12 11:39:45 +02:00
Shlomi Fish
4679375cdb convert to Release CMAKE_BUILD_TYPE 2020-11-12 11:38:50 +02:00
Shlomi Fish
5715d49db9 faster mirror 2020-11-12 11:38:50 +02:00
Shlomi Fish
6eb3e4d1ed svg fixes and remove print 2020-11-12 11:38:50 +02:00
Shlomi Fish
35c552e4ee remove unused. 2020-11-12 11:38:50 +02:00
Shlomi Fish
d1817d752b fix 2020-11-12 11:38:50 +02:00
Shlomi Fish
497bce52d2 fix tests and py2 support 2020-11-12 11:38:49 +02:00
Shlomi Fish
d48b2027b5 add script 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
6f16a53705 more meaningful example. 2020-11-12 11:38:49 +02:00
Shlomi Fish
40c303614d got to build 2020-11-12 11:38:49 +02:00
Shlomi Fish
9acb7b8024 add shiboken, 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
cardset
93793c01db Again cardset-viewer
- changed the imports
- added shebang
- changed a lot of variable names because of pylint: doesn't conform to snake_case naming style
2020-11-12 10:05:14 +02:00
cardset
afe0e080c0 Update cardset_viewer.py
Nächster Versuch
2020-11-12 10:05:14 +02:00
cardset
d6e197f8c8 Update cardset_viewer.py
Rewritten
2020-11-12 10:05:14 +02:00
Juhani Numminen
69b0cc86ff Avoid errors when options.cfg has no data
In that case res==False which was not accounted for, resulting in
AttributeError: 'bool' object has no attribute 'items'.

Closes #193.
2020-11-06 18:10:44 +02:00
Shlomi Fish
bc1023dc14 add a get-up-and-running script
See: https://sourceforge.net/p/pysolfc/discussion/503709/thread/b37cd50f/
2020-11-02 14:23:28 +02:00
Shlomi Fish
94927cbbc0 add a get-up-and-running script
See: https://sourceforge.net/p/pysolfc/discussion/503709/thread/b37cd50f/
2020-11-02 14:21:24 +02:00
Juhani Numminen
b265b28502 Enhance icon sets (.ico and .icns)
* Extract size 16x16 and 32x32 PNG's from .icns
* Put a sharper version of 128x128 in .icns
* Pack multiple icon sizes into .ico
2020-10-20 17:11:18 +03:00
Juhani Numminen
372fcba9de Window icon: Sort by largest, otherwise macOS Dock presents ugly low-res icon 2020-10-20 16:54:25 +03: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
Shlomi Fish
934db8da3b cleanup the last commit
Merge an identical if/else and indent comments
2020-10-19 15:00:24 +03:00
cardset
c6811cca29 Info/Settings Sliders Moved
Moved Offset Sliders to the same place as Scale Sliders. I think that makes more sense in operation and overview. It also avoids that wrong values could be saved
2020-10-19 09:14:43 +02:00
Juhani Numminen
91f785c574 Fix list of packages to install with apt-get
libperl-dev is not necessary, while the old python-glade2, python-gnome2 and python-gtk2
libraries are no longer installable in Ubuntu 20.04 LTS or Debian 10.

Update for this section requested in sf.net ticket #39; https://sourceforge.net/p/pysolfc/bugs/39/
2020-10-15 15:56:27 +03:00
Juhani Numminen
bb2769a63a Change comment which had non-runnable command in it
This was brought up on a mailing list
https://groups.google.com/d/msg/foss-card-games/uJLry-w498E/HmwiTxUkDQAJ
2020-10-15 15:32:35 +03:00
Juhani Numminen
1c79d5437e Refactor initCardsets
Make variable names descriptive.

Don't check for duplicate or empty strings in result of getSearchDirs() because
that is not necessary. Document those properties in a comment in resource.py.

Wrap try...except more closely around expressions where we want to catch.
2020-10-15 12:30:36 +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
Juhani Numminen
7255ad9e68 macOS: Update travis to python 3.9 2020-10-12 23:35:15 +03:00
Juhani Numminen
451700aefa macOS: Create PySolFC.dmg for convenient installation 2020-10-12 23:35:15 +03:00
Juhani Numminen
97e981d900 macOS: ensure the application window is shown
py2app's "argv_emulation" feature prevents the Tkinter window from being shown
when PySolFC.app is launched.

This did not affect launching pysol.py using Terminal on macOS.

Solution found here: https://stackoverflow.com/questions/12992316/tkinter-py2app-created-application-doesnt-show-window-on-initial-launch
2020-10-12 23:35:15 +03:00