From: Scott L. <sla...@th...> - 2002-09-04 07:38:29
|
On Tue, 3 Sep 2002, Everett, Toby wrote: [...] > My next goal was to use anonymous subroutines as much as possible. I think a problem with that is if your interface does the same thing from several different places -- toolbar, menubar, treectrl -- then you duplicate code. Plus I think nesting anonymous subroutines is ugly, but that's just me. :) I also am interested in these cool tricks from experience. Also something kind of related is I notice there are no CPAN modules for Wx. I think there could be some convenient classes for tedious things. I'm working on a module now (tentatively called Wx::CGI) which provides a CGI.pm interface to wxPerl. At least some people might be amused if nothing else. :) Example: # set up frame, etc., then my $q = Wx::CGI->new(-parent => $frame); $q->start_html(); $q->h1('Big text'); $q->br(); $q->popup_menu(-name => 'blah', ...); $q->textfield(-name ...); ... I have most of these kind of things implemented (in fact, my question on getting rid of the TextCtrl border was for this project), but not got the ability to "submit" yet (I still am considering how to do it). Hopefully this weekend I can show it. |