Why not have
my %default = (-background => 'cyan'); sub make_label( $parent, %attrs ) { $parent->Label( %default, %attrs )->pack } make_label(-text => ' ' ); ...
I don't see a need to involve a DSL here when simple subroutines and global(-ish) variables can achieve the same.
In reply to Re: Verbose Tk Code
by Corion
in thread Verbose Tk Code
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |