[PyQt] pyqt, py2exe and ui files
Albert Cervera i Areny
albert at nan-tic.com
Wed Nov 25 01:15:53 GMT 2009
A Dimecres, 25 de novembre de 2009, Scott Ballard va escriure:
> I have a Python/PyQt script that is loading a .ui file. If I use py2exe
> to turn it into an executable I get errors about missing modules like
> PyQt4.elementtree.ElementTree. If I convert the .ui files using pyuic4
> and embed them into the Python script then py2exe works just fine.
>
> Has anyone figured out how to use .ui files with py2exe?
Sure. Simply adding:
from xml.etree.ElementTree import parse, SubElement
in your main application .py file should do.
>
> Any helpful tips or tutorials would be appreciated.
>
> Many thanks!
> -Scott
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
--
Albert Cervera i Areny
http://www.NaN-tic.com
Mòbil: +34 669 40 40 18
More information about the PyQt
mailing list