[Tutor] a zipapp question
Alan Gauld
alan.gauld at yahoo.co.uk
Wed May 10 20:30:23 EDT 2023
On 10/05/2023 22:23, fernando ramirez wrote:
> My question is simple, zipapp creates executables, I know it works but
> what if I want my app to have images in its buttons, I can't make my
> app run with double click, it only runs from the command line, how can
> I fix this? ?
First, thanks for mentioning zipapp, this is the first I've heard
of zip apps in Python. So a new learning experience for me. But
that in turn means I have no real experience of using the tool(yet).
However, from my brief readings it seems like it just zips all your
python files together and adds a main.py to start the app running.
You mention your app having buttons with images? Is this in a GUI?
If so the solution will depend on which GUI you are using. Can you
run your application with images without zipapp? If so it should
work in zipapp provided the images are included in the pyz file.
But as I say, I have not used zipapp in anger, so cannot be certain.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list