in reply to Perl/Tk WYSIWYG

I agree with Dr. Mu. The boilerplate code produced by those IDE's is harder to deal with than it's worth.

I was the same way when I started up with Tk GUI's. Man I wanted something like VB, with all the options and callbacks available thru right-click option menus. But after realizing I was spending more time trying to decipher all the triple_underscores and other boilerplate techniques for auto-code generation, I just started to do it manually. It only takes going thru a few examples to get the hang of it. The biggest trick is to learn how to use frames, lots and lots of frames, frames in frames, frames of frames.....etc. You can quickly setup whatever you want, then go back and fill in the callbacks.


I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: Perl/Tk WYSIWYG
by argggh (Monk) on Jun 04, 2004 at 18:21 UTC
    As an aside, this is why I find Gtk::GladeXML so nifty. Although you can get glade to produce fill-in-the-blanks code for you, I always just keep the xml file around and let Gtk::GladeXML instantiate the dialogs directly from that. Program logic can be associated with graphical elements either by hand with signal_connect or en masse with the rather cool signal_autoconnect_from_package.

    (I see there's now glade2 and Gtk2::GladeXML as well, which is probably more hip.)

      Yeah, I liked Glade when I tried it. Also the new PerlGTK2 interface is really being "perfected" by that team of programmers. I have been impressed by how smoothly it now installs, and all the demos work.

      If only the docs for PerlGTK2 were as good as for Perltk. :-)


      I'm not really a human, but I play one on earth. flash japh
        I started working on WYSIWYG GUI builder for Perl/Tk (the goal is to create a Visual Basic style IDE for Perl/Tk) a couple of months ago and have posted the project on SourceForge.net under the name VisualCamel. Any Perl coders that would like to help out with this project are welcome. The current package available is not complete but includes several widgets and allows you to open and save a project and export the open project to Perl code.

        I plan to add the ability to export a project as a new Tk module.