Cloning controls

I am doing something where I am going to dynamically
generate a form and decided to use Donnals project
Mindwrapper to create it. I think it may be suitable
for what you are doing.

I can recommend to take a look at it.

What I guesss you would do is to translate the XML
to the AL of mindwrapper and then the gui would be
built from that. The nice part is not to care about
sizers and other stuff like that. The project is
still in an early stage but usable enough for me.

Check it out the prelimanary tutorial on
http://mindwrapper.org/prelim/pretutorial.html

to get an idea how it works.

/Toni

ยทยทยท

-----Original Message-----
From: Donnal Walter [mailto:donnalcwalter@yahoo.com]
Sent: Thursday, September 11, 2003 9:35 AM
To: stephen r emslie
Cc: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] Cloning controls

--- stephen r emslie <semslie@cs.uct.ac.za> wrote:

That would work if I knew what the controls were going to be.
Perhaps I should explain a little better.

I'm reading an xml document and extracting field information
that I use to dynamically generate a form in wxPython. One of
the elements in the form should be able to be repeated (cloned)
at run time. So basically another element exactly like the
previous one is generated, but I dont know what the previous
one is going to be.

Yes, I see. Writing code that will build a class at runtime is more
difficult, I admit, but I still think that is your best bet. I
don't know what the code looks like that generates the form in
wxPython as you wread the XML document, but I my guess is that you
could modify it to build a class instead of building an instance.
Just a thought.

Interesting problem. Regards,

=====
Donnal Walter
Arkansas Children's Hospital

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org