[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] pyqt, py2exe and ui files
From: Albert Cervera i Areny <albert () nan-tic ! com>
Date: 2009-11-25 1:15:53
Message-ID: 200911250215.55847.albert () nan-tic ! com
[Download RAW message or body]
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@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
--
Albert Cervera i Areny
http://www.NaN-tic.com
Ṃbil: +34 669 40 40 18
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic