On Jan 17, 2007, at 9:38 AM, Uwe Grauer wrote:

>> Added question:  Is there a utility that converts cdxml files to  
>> python
>> wxPthon code and allows me to save the code to a file?
>
> Yes, that would be one of the greatest things!!!

        It's done every time you run a cdxml form. Look at the CLASSTEXT.py  
files that get generated. Of course, due to the vagaries of Python's  
dynamic class generation, the code associated with the object is  
broken out into a separate file in your temp directory, but the code  
for the form's structure is in CLASSTEXT.py.

        The dabo.lib.DesignerXmlConverter is the program that accomplishes  
this conversion, but bear in mind: the code is far from obvious. It  
took me several months before I could get it to work, and the code it  
generates is not optimized at all, as it has to be generic enough to  
handle anything.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to