Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG graphics #3

Open
jan-kleks opened this issue Feb 7, 2016 · 20 comments
Open

SVG graphics #3

jan-kleks opened this issue Feb 7, 2016 · 20 comments

Comments

@jan-kleks
Copy link

PySolFC a fantastic solitaire collection, it's just a pity that there is only one person currently working on it. :( Even after all these years, the mechanics seem to be all right, the music is awesome, however, the UI could be modernized. By switching to SVG cards one could support any resolution. I have also this crazy idea, that cards could be played directly on the desktop... This would be like a real solitaire on a real table (without window boundaries).

Regards,
Jan

@shlomif
Copy link
Owner

shlomif commented Feb 7, 2016

@jan-kleks : thanks for your suggestions. I agree that supporting SVG cards would be a good idea. I don't immediately see how the UI could be "modernised" but I'm opposed to getting rid of the menu bar, and replacing it with a GoogleChromium/GNOME 3-like main menu button. Regarding playing directly on the desktop - wouldn't a full screen mode be a better idea (and an easier to implement one)?

All that put aside, separate feature requests should be in separate issues/entries for better handling of closing/resolving/etc.

@jan-kleks jan-kleks changed the title New interface, SVG graphics, playing directly on desktop SVG graphics Feb 7, 2016
@hairspring
Copy link

Why has this project been hidden on github for years? On Sourceforge this year I mentioned that adding SVG support would have benefits, and now I feel a complete idiot, because I see that 12 months earlier this was already being discussed over here on Github!!!

Do people actually WANT help with this project? It's a great project, it needs some more love. What's the best way to move this forward? And by 'this' I don't mean SVG support, I mean the whole project.

It's not clear to me whether there's any regression tests available for this project. Are there unit tests? Before moving to Python 3, surely a comprehensive set of tests is needed?

@shlomif
Copy link
Owner

shlomif commented Apr 16, 2017 via email

@hairspring
Copy link

Ahah, I assumed shlomif is an alias for skomoroh, they seemed kind of similar to me. :(

I can appreciate that it's attractive to work on actual code and make the changes to move to Python 3. But I really do think that before doing that we need an automated test suite, that can be set up on a build server such as Jenkins, so we can be confident of minimising regressions.

I have a lot of experience doing this in C#, C++, etc, but none in Python unfortunately (though I'd like to learn). Indeed I have relatively little experience of Python, I can read it ok, but I'm not yet into Pythonic style.

If necessary, we need to refactor code so that the GUI part is rather separate, to make testing easier.

It would be great if we could find someone with experience of testing Python code, setting up unit tests etc.

@shlomif
Copy link
Owner

shlomif commented Apr 16, 2017 via email

@hairspring
Copy link

It's easier to give advice than to actually write code and implement it.

Indeed so! "Those that can, do. Those that can't, make suggestions"! :)

Github, git, python (2 and 3), Travis CI, Pysol code itself, Tk gui, ... there is much to learn. :(

I'm not even sure what is appropriate discussion in issues threads, am I creating clutter? Normally I'd take this kind of discussion to a mailing list, or perhaps even send private mail (can't do that, having read http://www.shlomifish.org/meta/FAQ/#refer_or_address I'd be racked with indecision between all the possibilities! ;) ). Besides, I agree that public discussion helps others, private mails are rarely useful.

As you can guess, I'm quite keen on regression testing. Does the Travis CI system only test the master, or can it be told to test selected (or all) branches as well?

I'm sorry, I'm very conscious I'm dragging this discussion off topic.

@shlomif
Copy link
Owner

shlomif commented Apr 17, 2017 via email

@hairspring
Copy link

I feel it's still on topic, but you can also reach me on IM/etc. here - http://www.shlomifish.org/me/contact-me/ . there's also a chatroom for PySol on freenode.

Afraid I'm not a great one for IM/IRC/etc.

I think Travis tests all branches by default - or at least those that contain a .travis.yml file. Moreover, it also tests the commits on the pull requests when they are filed.

That's useful.

I'm having trouble finding our other interchanges on Github, it doesn't seem to tell me where I've commented. But in mail (now deleted) I noticed you responded to my comment about flake8. Thx for that, I'd supposed flake8 was the name of some solitaire variant you were testing, or some such. Seeing your response caused me to question my assumption, I googled, ahah, flake8 is a Python tool. Yet more learning needed! ;) :/

shlomif added a commit that referenced this issue Jun 8, 2017
shlomif added a commit that referenced this issue Jun 8, 2017
shlomif added a commit that referenced this issue Jun 8, 2017
shlomif added a commit that referenced this issue Aug 25, 2017
shlomif added a commit that referenced this issue Aug 25, 2017
shlomif added a commit that referenced this issue Aug 25, 2017
shlomif added a commit that referenced this issue Nov 11, 2018
@AntumDeluge
Copy link

I'm sorry, but I'm unclear in the resolution of this issue. Does PySolFC now support SVG cardsets/graphics?

@shlomif
Copy link
Owner

shlomif commented Apr 27, 2019

@AntumDeluge : my mistake - it was closed by mistake. Reopening. There is no support for svg yet.

@shlomif shlomif reopened this Apr 27, 2019
shlomif added a commit that referenced this issue Apr 27, 2019
shlomif added a commit that referenced this issue Apr 28, 2019
shlomif added a commit that referenced this issue Apr 28, 2019
@shlomif
Copy link
Owner

shlomif commented Apr 28, 2019

I started implementing preliminary support for loading kpat's SVG cards here: https://github.com/shlomif/PySolFC/tree/svg-support . Building it requires chasing some dependencies using apt/dnf/etc. and may not be a portable process yet. I'd like to share some screenshots and screen recordings soon.

@AntumDeluge
Copy link

Nice! Can't wait to see how it works out.

I've been working on converting GreyWyvern's cardset to SVG.

shlomif added a commit that referenced this issue Apr 29, 2019
shlomif added a commit that referenced this issue Apr 29, 2019
shlomif added a commit that referenced this issue Apr 29, 2019
shlomif added a commit that referenced this issue Apr 30, 2019
shlomif added a commit that referenced this issue May 1, 2019
shlomif added a commit that referenced this issue May 1, 2019
shlomif added a commit that referenced this issue May 1, 2019
@shlomif
Copy link
Owner

shlomif commented May 1, 2019

Screenshot_20190501_193008

This is a screenie of the SVG cards in action - also see https://www.shlomifish.org/Files/files/images/pysolfc--svg-cards--preview0.1.0.webp . Enjoy!

@AntumDeluge
Copy link

Nice work. Will the SVG images scale with the window when resized?

@Programator2
Copy link
Collaborator

I have two remarks that may be related:

  • cards have wrong aspect ratio, they are narrower than the kpat original
  • graphics on the cards look jagged, like there's some anti-aliasing or interpolation issue

@shlomif
Copy link
Owner

shlomif commented May 2, 2019

Nice work. Will the SVG images scale with the window when resized?

That is the plan, but AFAI can tell, they currently do not.

@shlomif
Copy link
Owner

shlomif commented May 2, 2019

I have two remarks that may be related:

* cards have wrong aspect ratio, they are narrower than the kpat original

* graphics on the cards look jagged, like there's some anti-aliasing or interpolation issue

Both of these symptoms are expected due to the way it is currently done. The branch will require more work.

shlomif added a commit that referenced this issue May 5, 2019
shlomif added a commit that referenced this issue May 5, 2019
shlomif added a commit that referenced this issue May 5, 2019
shlomif added a commit that referenced this issue May 5, 2019
shlomif added a commit that referenced this issue May 5, 2019
shlomif added a commit that referenced this issue May 5, 2019
shlomif added a commit that referenced this issue May 16, 2019
@shlomif
Copy link
Owner

shlomif commented May 16, 2019

@Programator2 : I've done some work on that and you can see the results here - https://www.shlomifish.org/Files/files/images/pysolfc-svg-support--v0.1.1.webp . Please let me know if there's an improvement.

@Programator2
Copy link
Collaborator

Nice job, card graphics look definitely better now.

There's one little thing I've just noticed - left edges of diamond suite cards are shifted a bit to the right. Is it because of the image files? I see that this also happens in KPat.

@shlomif
Copy link
Owner

shlomif commented May 22, 2019

@Programator2 : thanks for the input. There is still some work to do.

shlomif added a commit that referenced this issue May 31, 2019
shlomif added a commit that referenced this issue May 31, 2019
shlomif added a commit that referenced this issue May 31, 2019
shlomif added a commit that referenced this issue May 31, 2019
shlomif added a commit that referenced this issue Jun 5, 2019
shlomif added a commit that referenced this issue Jun 5, 2019
shlomif added a commit that referenced this issue Jun 5, 2019
shlomif added a commit that referenced this issue Jun 5, 2019
shlomif added a commit that referenced this issue Sep 12, 2020
Support python 3.7 but not 3.8 yet - py2exe seems abandoned
jnumm pushed a commit that referenced this issue Oct 6, 2020
Support python 3.7 but not 3.8 yet - py2exe seems abandoned
shlomif added a commit that referenced this issue Nov 12, 2020
shlomif added a commit that referenced this issue Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants