in reply to Is there a really perlish user interface module, or something?
For example, take your dialog box example. There is a messageBox method that is nearly as simple.
If that is still too much typing, put it in a sub with the customized defaults you desire. I do not know how to both derive a title from a main window and not have the dialog derived from a main window; pick one.$answer = $mw->messageBox( -message => 'Are you sure you want to quit?', -title => 'Demo dialog', -type => 'YesNo', -icon => 'question', -default => 'yes' );
As for your browse widget, I've never needed such a thing, but you may want to check out the ListBox widget (chapter 7 of Mastering Perl/Tk is devoted to ListBoxes). Finally, I don't see what is preventing you from validating responses with regular expressions; on the contrary, this is usually encouraged as good defensive coding.
I always thought of the perl/Tk interface as melding very nicely with the rest of perl. The interface has a natural hierarchical, OO structure and after playing with some widgets, it is pretty easy to guess what is needed with new widgets. It does what I mean.
That said, I can see room for improvement. Tk has always been beautiful enough for me, but I recognize that others are more sensitive to GUI fashions. For instance, it would be nice for Tk widgets to be more easily skinnable, in the fashion of GNOME or KDE widgets.
Update: I forgot to mention that the Tab key allows keyboard traversal of widgets in a window.
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there a really perlish user interface module, or something?
by Shenpen (Beadle) on Aug 08, 2004 at 21:36 UTC |