Python Forum

Full Version: Create bitmap image for my exe
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi;
I am trying to create an executable application from a python file. for that, in the console of command prompt (windows 10 64 bits) I execute this instruction:

python setup.py bdist_wininst

after this command, the directory 'dist' will be created that contains the installer
By default the installer will display the cool « Python Powered » logo when it is run,
how could I put my bitmap image of size 152x261
thanks for help
from the docs:
Quote:By default the installer will display the cool “Python Powered” logo when it is run, but you can also supply your own 152x261 bitmap which must be a Windows .bmp file with the --bitmap option.
hi;
I have already seen from this link but I did not understand how to add my bitmap image.
the limk: doc-python
I tried this this code but didn't work like I wanted :
python setup.py bdist_wininst --bitmap=("my_photo.bmp")
assuming my_photo.bmp is in current working directory try
python setup.py bdist_wininst --bitmap=my_photo.bmp
or
python setup.py bdist_wininst --bitmap my_photo.bmp
sorry for the delay in my response; I was disconnected since I was traveling for personal obligations
II quickly tried the code; I think it works, but I'll try it again at rest later
thanks
hi;
it's ok
thanks