Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: tk widget options stored in hash

by glenn (Scribe)
on Nov 13, 2013 at 21:20 UTC ( #1062478=note: print w/replies, xml ) Need Help??


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 (Bishop) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1062478]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2022-01-19 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?