Python 2.0 / Python 2.2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gina Schuffenhauer

    Python 2.0 / Python 2.2

    Hallo newsgroup,

    I have some questions concerning Python 2.2.

    First question:
    I try to port source code from Python 2.0 to Python 2.2.The following source
    code works with Python 2.0. If I compile it with Python 2.2, the modul "tci"
    is not imported. "tci" is a python module written by us. How can I change
    the source code to get it working with Python 2.2.?

    Py_Initialize() ;

    PyStr = Py_BuildValue(" s", TCIHome);

    PyModule = PyImport_Import Module("sys");
    PyList = PyObject_GetAtt rString(PyModul e, "path");
    PyList_Insert(P yList, 0, PyStr);
    if (PyErr_Occurred ())
    return 0;

    TCIModule = PyImport_Import Module("tci");

    Second question:

    I want to embed Pythonwin in a C++-Application. Where can I find a
    win32uiHostGlue .h to access win32ui.pyd version 2.1.0.152?


    --
    Mit freundlichen Grüßen / best regards
    Gina Schuffenhauer

    schuffenhauer@I WQ.de





Working...