Re: [PyQt] Re: py2exe and resource files

2009-11-13 Thread piotr maliƄski
pyrcc4 can compile resource file to a python file, which you import in the python code of your app - and then py2exe without any changes packs the compiled *py resource file also :) 2009/11/13 Tiago Maluta > I just realize that happens with file format because with a simple > test on .qrc file:

[PyQt] Re: py2exe and resource files

2009-11-13 Thread Tiago Maluta
I just realize that happens with file format because with a simple test on .qrc file: - logo.jpg + logo.png After changed to png everything works, note I with the same setup.py described on the previous message. I didn't try other formats yet. --tm On Fri, Nov 13, 2009 at 11:02 AM, Tiago M

Re: [PyQt] Bug in sip-4.9.2-snapshot-20091108 handling virtual methods

2009-11-13 Thread Simon Edwards
Giovanni Bajo wrote: this kind of problems happen to me without a full recompilation; specifically, if module A %Imports module B, you need to recompile A whenever *any* of B's sip files changes. sipdistutils.py doesn't handle this automatically yet, but I have a patch in progress. I don't thi

[PyQt] Updates to sipdistutils.py

2009-11-13 Thread Giovanni Bajo
Hi Phil, please find attached an improved sipdistutils.py, and the diff against current version for reference. Modifications: * Added command line option to pass arguments to sip. Now you can for instance do: "python setup.py build --sip-opts='-e'" to activate exceptions. Or you can put the "si

Re: [PyQt] Bug in sip-4.9.2-snapshot-20091108 handling virtual methods

2009-11-13 Thread Giovanni Bajo
On Fri, 2009-11-13 at 00:29 +0100, Simon Edwards wrote: > Hello Phil, > > Using sip-4.9.2-snapshot-20091108 here I've got a class with a public: > > class WallpaperScript : Plasma::ScriptEngine { > // ... > public: > virtual voidinitWallpaper (const KConfigGroup& config); > // ..

[PyQt] Log viewer file change notification

2009-11-13 Thread Christian Aubert
I'm using the logging module to keep a log instead of messy print statements users don't want to see. I set up a log viewer but right now users must press an "update" button to get the latest log file displayed. Is there any way to get a file change notification so I can update the log display

[PyQt] py2exe and resource files

2009-11-13 Thread Tiago Maluta
I had an simple PyQt4 program that uses a resource file. After executable generation I can't see the resource file content. I tried many variations (i.e: 'data_contents') but anyone works Basically my script is: from distutils.core import setup import py2exe, sys, os sys.argv.append('py2exe') se