Python Forum
Create bitmap image for my exe
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create bitmap image for my exe
#1
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
Reply
#2
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.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
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")
Reply
#4
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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
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
Reply
#6
hi;
it's ok
thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Taking any 2d image and passing it to create a level iki_a_toure 4 1,036 Oct-19-2022, 06:35 AM
Last Post: iki_a_toure
  Fail to allocate bitmap rsbeesh 7 15,702 Dec-13-2017, 01:36 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020