From: John R. <jr...@ce...> - 2007-03-01 21:22:43
|
On Mar 1, 2007, at 10:15 AM, Bob Hunter wrote: > ... an alternative to hand coding would be one that I > have long wanted to have, but were afraid to ask, that > is, to make a clear cut between the GUI and the actual > routines, and use an Interface Builder to design the > GUI with ease, provided the I.B. generates perl/wx > code. > > If you have references on how to do this, it would be > wonderful to have them. > > Bob As for coding the interface, no, it's nowhere near as simple as Perl/ Tk. The payoff is that it doesn't look anywhere near as bad, and you have a lot more control over the results and the "inner workings" of your program. You can either create the interface by hand with code, use an interface design tool to do it for you (though only wxGlade emits perl), write definition files in XML for the XRC subsystem (definitely not recommended!), or use an interface design tool to do *that* for you. I do the last; many folks do the first. Once you have the visual interface created, you have to write code to make it do things and to move data between the interface and the working parts of your program. This need not be interlaced with the display code: Unlike Tk, wxWidgets is thoroughly object oriented, so it's pretty easy to use a design which keeps everything nicely separated. Regards, John Ralls |