For a couple of years I programmed on a device where ALL the apps combined had to total less than 8KB.
I'm guessing it is Electron or something and underneath it is loading an entire web browser engine to display the image and the button.
Also I didn't find a way to install Qt on Windows without later receiving E-Mails from Trolltech (or The Qt Company, nowadays) trying to sell Qt to me.
pip install pyqt5-tools gets you everything incl the designer :-)
It may fail building though.
Shipping JRE isn't a thing since Java 9, other than for folks stuck in old Java ways.
OTOH - I wonder what the size of native binary would be
I think Java is a nice choice for a Solitaire game. If you're looking for efficiency, take a look at my command-line Solitaire that you can play in Gitlab pages or in a terminal : https://gitlab.com/rpigab/solitaire-cli
It's written in Rust so by design, it should be blazingly fast wink wink. Well there are many ways to shrink the binary, I didn't try to yet, the WebAssembly part too is way bigger that it would need to, but still, it's smaller and there's less colors, shapes and animations to display.
I love working towards making systems as efficient as possible, but in real life, engineer hours are limited and compromises exist.
Also, if this is quantitative, we could make the same argument with 1MB, and 1KB, and less. Sending text doesn't require RAM at all, it requires carrier pigeons.