From: Morgan V. <ve...@gm...> - 2009-02-13 17:37:06
|
Hi All, I've got an odd little bug. When I run from source, the gauge component works fine. I'm packaging up my application with py2exe: "python setup.py py2exe" When I run the resulting application, the gauge component no longer renders correctly. Instead of showing it's usual orange progress boxes, it's whitish and turns transparent as the gauge fills -- in my case you just see the background color filling up the gauge. Py2exe doesn't throw any build errors, and the gauge component is included in the setup.py file below. Is it possible I need to import something else explicitly in my source to make this work? I already import PythonCard.components as well as "model" and "dialog" Here's my setup.py: from distutils.core import setup import py2exe import os # find pythoncard resources, to add as 'data_files' pycard_resources=[] for filename in os.listdir('.'): if filename.find('.rsrc.')>-1: pycard_resources+=[filename] # includes for py2exe includes=[] for comp in ['button','image','staticbox',\ 'statictext','textarea','textfield','multicolumnlist','bitmapcanvas','gauge']: includes += ['PythonCard.components.'+comp] print 'includes',includes opts = { 'py2exe': { 'includes':includes } } print 'opts',opts # end of py2exe stuff setup(name='pySprintsMainMini', version='0.1', url='about:none', author='morgan venable', author_email='root@127.0.0.1', package_dir={'pySprintsMainMini':'.'}, packages=['pySprintsMainMini'], data_files=[('.',pycard_resources)], console=['pySprintsMainMini.py'], options=opts ) thanks! morgan |