#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    2
    Rep Power
    0

    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?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    2
    Rep Power
    0
    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"

    import py2exe
    import PythonCard
    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

    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" ]) ]
    )

IMN logo majestic logo threadwatch logo seochat tools logo