Code Comments
Programming Forum and web based access to our favorite programming groups.Hi! I'm using Komodo GUI editor to make my perl guis. Now I just wondered, if there are only 14 TK widgets and 6 perl widgets avail. This renders Komodo's GUI editor useless. Any idea of other widgets to integrate to Komodo? I'd need stuff like a directory tree, intelligent drop down for selecting drive letters in windows and so on. Can anyone help on this? Thanx, edw.
Post Follow-up to this messageedw@gmx.at (edw) wrote in message news:<84ea18d7.0407291353.457b2158@posting.google.com>... > Hi! > > I'm using Komodo GUI editor to make my perl guis. Now I just wondered, > if there are only 14 TK widgets and 6 perl widgets avail. This renders > Komodo's GUI editor useless. Any idea of other widgets to integrate to > Komodo? > I'd need stuff like a directory tree, intelligent drop down for > selecting drive letters in windows and so on. > Can anyone help on this? > > Thanx, > edw. perl/Tk comes with a DirTree widget that present the user with a collapsible tree of directories. You would need some additional widgets to select different drives on Win32. By "drop down" I assume you are referring to a Combobox-type of widget - an entry field with a button that opens a scrolled list of options displayed below the entry field. For something similar to the HTML "select" widget, your choices from CPAN are: - BrowseEntry (most widely used?) - JComboBox (my personal favorite) - MatchEntry (sort of; need to provide your own button) I don't know of a comprehensive catalog but the Tk widget demo is fairly complete. I suggest you search CPAN for the type of widget you are looking for. I've had pretty good success. Keep in mind that perl/tk is a toolkit that you can use to build new, more complex widgets. If a specific widget does not exist, chances are you can use existing widgets to craft it. The Mastering Perl/Tk book covers how to do that.
Post Follow-up to this messagesandorpatocs@netscape.net (sandor) wrote: > edw@gmx.at (edw) wrote: > > perl/Tk comes with a DirTree widget that present the user with a > collapsible tree of directories. You would need some additional > widgets to select different drives on Win32. Tk::DirSelect (available on CPAN) provides a cross-platform directory selection dialog that supports Win32 drives. (The lastest pTk supports the native dialog, so this module isn't needed there.) If you want something embedded (that is, not a dialog) take a pat the source. Tk::DirSelect is just a DirTree + a BrowseEntry. It should be easy to adapt something from it. -mjc
Post Follow-up to this messagesandorpatocs@netscape.net (sandor) wrote in message news:<e52b0bd5.0407292018.282bb387@post ing.google.com>... > edw@gmx.at (edw) wrote in message news:<84ea18d7.0407291353.457b2158@posti ng.google.com>... > > perl/Tk comes with a DirTree widget that present the user with a > collapsible tree of directories. You would need some additional Yup, thats true. Found it already. But how do I include this into Komodo GUI builder? > widgets to select different drives on Win32. That's what I'd need a dropdown/select widget for :-) Poll all drives and put them in there manually. Maybe even write a generic drive selection widget. > By "drop down" I assume you are referring to a Combobox-type of widget > - an entry field with a button that opens a scrolled list of options > displayed below the entry field. For something similar to the HTML > "select" widget, your choices from CPAN are: > - BrowseEntry (most widely used?) > - JComboBox (my personal favorite) > - MatchEntry (sort of; need to provide your own button) That's a good starting point. Thanx a lot. Just still got to figure out, how to integrate into Komodo once more... > I don't know of a comprehensive catalog but the Tk widget demo is > fairly complete. I suggest you search CPAN for the type of widget you > are looking for. I've had pretty good success. > > Keep in mind that perl/tk is a toolkit that you can use to build new, > more complex widgets. If a specific widget does not exist, chances > are you can use existing widgets to craft it. The Mastering Perl/Tk > book covers how to do that. Thanx for your help. If I cant get it to work, I'll kick Komodo GUI builder after designing a rough plot of my UI ... sorry to say. cheers edw.
Post Follow-up to this messageedw, I have been trying to cope with the same problems using Komodo GUI builder . Did you figure out how to include more widgets? I have pretty much given up on the Komodo Gui Builder. Do you have any exp erience with other GUI WYSIWYG builders for Perl or Perl/Tk? I really really really want a Perl GUI Builder that is just like Visual Ba sic. Anyone know of anything like this? Thanks. embalism
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.