Hi guys,
I wanted to call from C++ a GUI.
I have a py script that I can call from C.
In the script I defined a class that I can instantiate from C.
I can call a method of the class that can start the wxApp,that in turn
open a frame.
Here is a snippet of the C code
pModule = PyImport_Import(ModuleName);//import the module
pDict = PyModule_GetDict(pModule);//import the __dict__ of the
module, i.e.the module’s symbol table
pClass = PyDict_GetItemString(pDict, class_name);//retrieve the
class from the module
// --Create an instance of the class
if (PyCallable_Check(pClass))
{
pInstance = PyObject_CallObject(pClass, NULL); //
}
//call the method that will run the application
printf("Call the method1\n");
pValue = PyObject_CallMethod(pInstance, method_name, NULL);
What I would like to do, and I can not figure out how can I do it, is
to modify the frame from C on the run.I cannot do this because once
the wxApp starts,it takes control and until the Frame is open C does
not execute any other instruction.
Any idea is very wellcome!
···
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en