in reply to GUI Setup with Tk, overly verbose, or maintainable?

I'd go with "overly verbose", unless you need references to the majority of the widgets for cgets or changes.

If that is the case, then I'd suggest adding

use constant { LIST => 0, DEL => 1, ADD => 2, DUP => 3, CHG => 4, EXIT => 5, };
so that you can refer to e.g. $layout{'button'}->[ADD] to modify the "Add Data" text.

Replies are listed 'Best First'.
Re^2: GUI Setup with Tk, overly verbose, or maintainable?
by Grygonos (Chaplain) on Jul 02, 2004 at 17:44 UTC

    Looking back on it I don't need the refs to Button's to be stored... just the labels, callbacks and frames(so I can create a button on that frame via $frame->Button(..); Would that help you think?