I currently write a commercial app and found out that Wx::RadioButtons work differently under MacOS. These simply ignore the constant &Wx::wxRB_GROUP and slap together all the groups of a dialog. By toying around I found a way how to get several radio buttons (these labeled, round things from only one can be selected) in one dialog (following some style guidelines I guess), just put them on separate Wx::Panel. Than I remembered that Wx::Perl::RadioGroup does this anyway, and using them you also don't have to know about…
After the first burst of rants ähem layout of my cody GUI DSL I call in lack for a catchy bling name : GCL there are still some important holes to fill. Because the issue is not only to save you from boilerplate, but also saving you from mistakes and bad quality layout.
The simple goal of Wx::Perl::Smart (WPS now for short) is to make WxPerl - GUI programing fast, fun and technically sober. By that I mean you still have full access under the hood (like Moose does) to all features of the old ways. Oh, and speaking of OO, I decided using no framework (yet), not even Moo. While sitting on top of Wx, you don't count bytes in memory, but there is no big syntactical gain now, since there are almost no attributes and the ones I have need a special treatment as described further along this article.
As en extention of my last post, where I introduced the first rough ideas of the still changing GCL syntax, I want to write now about further advantages of the DSL I created this new namespace for. Yes it reminds a bit on smartmatch, but that's wanted, because these modules that implement the functionalities of GCL in the Wx realm (second planned target is Prima because I cant install Gtk2 here) and there is a lot things going on depending on the type of the value, exactly like in smartmatch. Plus the Wx::Perl::* namespace will be more free for other normal modules that do far less magic.
Search this blog
- Another reason to be Wx::Perl::Smart (Wx::RadioButtons under Mac)
- more thoughts on GCL
- Wx::Perl::Smart Design Decisions
- Where is App::Harmonograph ?
- Wx::Perl::Smart::* (technical advantages of GCL)
- Write GUI faster -> GCL
- How to get more/better Perl articles & docs
- How to load a Wx::Bitmap from a Variable
- Why I joined Propaganda.pm
- Creating My Own Buzzword