January 29th, 2005, 05:28 AM
Using PythonCard with Py2Exe
I can't get PythonCard's custdb example to work as a standalone application with Py2Exe. I've gotten the two programs to work together before, but this one has me stumped. The difficulty is with my Setup file. If anyone has had more luck, could you please post the code?
January 29th, 2005, 05:38 AM
This is the code that didn't work. All it returns is "Radiogroup could not be imported". Occationally, when I juggle things it gives me a different error that state "Usage could not be found, setup.py"
from PythonCard import dialog, model
from PythonCard.components import button,staticbox,statictext,textarea,textfield,radiogroup,imagebutton,list,staticbox,checkbox,passwo rdfield,spinner,choice
from distutils.core import setup
name = "custdb",
description = "a custom database.",
console = ["custdb.py"],
data_files = [ (".", ["custdb.ini", "custdb.rsrc.py", "customerdata.csv", "readme.txt", "custdb.de.rsrc.py" ]) ]