tkbx
tkbx

Reputation: 16305

Creating wxPython GUI .exe?

I've been trying for over a week now to make a .exe of a wxPython script. I still have a number of questions, and the process of creating an exe is still quite unclear.

  1. Which utility should be used? I've heard to use py2exe, pyinstaller, gui2exe, some combination of gui2exe and some shady .bat file, etc. Which is best for a wxPython app?
  2. What's the deal with .dlls? What do they do, do I need to "bundle" them, and why wouldn't they be on the user's computer?
  3. Can you bundle things into the .exe, or do they need to be in the directory the .exe is in?

These things have not been made particularly clear, as I've been trying to find out exactly how to make my program into an exe for a while.

Upvotes: 0

Views: 3648

Answers (2)

zephor
zephor

Reputation: 747

  1. I've just tried py2exe, it seems nice. It helps you bundle all the things needed into the .exe, or puts them to be in the directory the .exe is in whatever you like
  2. wxpython is the api of wxwigets whose kernel-code was written by c++. Many of them were compiled to dlls, so you have to bundle them with you program so it can call the dlls when it's running
  3. see 1.

BTW, it's my first time to answer a question in English, hope it helps

Upvotes: 2

W0bble
W0bble

Reputation: 767

  1. I use pyinstaller as it is very easy to use and the applications run without any problems
  2. Some Windows DDLs are needed for the included Python Compiler and for the maybe win32 api calls
  3. With Pyinstaller you can bundle everything needed (except config files and dbs of course) using the -F flag.

Upvotes: 1

Related Questions