pythoncard + py2exe: gauge component rendering wrong
Morgan Venable <[email protected]> Fri, 13 Feb 2009 09:37:00 -0800
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
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='[email protected]',
package_dir={'pySprintsMainMini':'.'},
packages=['pySprintsMainMini'],
data_files=[('.',pycard_resources)],
console=['pySprintsMainMini.py'],
options=opts
)
thanks!
morgan
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H