Full width home advertisement

Post Page Advertisement [Top]

If you run py2exe build and there are widgets with empty pixmaps then you need to read this (got from http://www.py2exe.org/index.cgi/Py2exeAndPyQt) :


PyQt4 and image loading (JPG, GIF, etc)


PyQt4 uses plugins to read those image formats, so you'll need to copy the folder PyQt4\plugins\imageformats to <appdir>\imageformats. Like in the above cases, you can use data_files for this. This won't work with bundle_files on.
If the plugins are not reachable, then QPixmap.load/loadFromData will return False when loading an image in those formats.
This will work with bundle_files as well, but you need to exclude the Qt DLLs from bundle (using the dll_excludes option) and add them to the directory with the executable through some other mechanism (such as data_files).

Комментариев нет:

Отправить комментарий

Bottom Ad [Post Page]

| Дизайн Colorlib