in reply to Re: tk widget options stored in hash
in thread tk widget options stored in hash

Is there a way to get info about the tk widget your currently in? I have not found anything as such, but this would be very helpful.
$frame->LabEntry(%{$colors{$_->class()}},....);

Replies are listed 'Best First'.
Re^3: tk widget options stored in hash
by kcott (Archbishop) on Nov 13, 2013 at 22:24 UTC

    If you're just interested in options, then cget() and configure() are probably the methods you want: see Tk::options.

    A lot of other methods providing information about widgets are documented in Tk::Widget.

    There's also information that's specific to particular widgets, geometry managers and so on. Spend some time getting to know where this is documented from the links provided in the Tk Distribution Documentation. See also equivalent documentation for User Contributed Widgets.

    -- Ken