Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Clearing anonymous Tk widgets

by murrayn (Acolyte)
on Aug 31, 2012 at 09:56 UTC ( #990964=note: print w/ replies, xml ) Need Help??


in reply to Re: Clearing anonymous Tk widgets
in thread Clearing anonymous Tk widgets

Other parts of the config file are much more complex than keyword=value. I wasn't going to confuse my objective with all that stuff. My ultimate objective is to find a means of tracking and controlling something for which I have no means of predicting an identifier. If I can write something like

my $name = $frm->.....Button(-command=> sub{delete $hash{$name};$name->destroy()};
that's easy. It's not so easy if I don't know, in advance, how many lines like the above I need nor what to use for the variable name in each case.


Comment on Re^2: Clearing anonymous Tk widgets
Download Code
Re^3: Clearing anonymous Tk widgets
by Anonymous Monk on Aug 31, 2012 at 10:35 UTC

    that's easy. It's not so easy if I don't know, in advance, how many lines like the above I need nor what to use for the variable name in each case.

    you don't need lines, you need a loop

    Tk::ObjScanner and Tk::WidgetDump use loops, you can use them too

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2015-07-03 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls