From: Kevin A. <al...@se...> - 2004-05-14 21:59:34
|
On May 14, 2004, at 2:41 PM, Tim Black wrote: > The word button does not appear in my app .py file and it only appears=20= > in my resource .rsrc.py file once, in the component declaration for=20 > it=92s type (I have one button in this one). Also, my py2exe setup = file=20 > is as basic as it gets: > > from distutils.core import setup > > import py2exe > > setup( name =3D "BOAMessenger", > > =A0=A0=A0=A0=A0=A0 console =3D ["BOAMessenger.py"], > > =A0=A0=A0=A0=A0=A0 data_files =3D [ (".", ["BOAMessenger.rsrc.py"]) ] > > =A0=A0=A0=A0=A0=A0 ) > > This is why I think it=92s a PythonCard issue. > > T > If you look at the minimalStandalone.py sample you will see the=20 following comment: # KEA 2001-12-11 # if you want to build a standalone executable using py2exe # then uncomment the import line below # due to the way the dynamic imports of components work, each # component that an app uses needs to be imported statically when # doing a py2exe build from PythonCard.components import textfield So, in your app .py file you have to provide similar imports for every=20= component you use. ka |