Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Clearing anonymous Tk widgets

by Anonymous Monk
on Aug 31, 2012 at 07:50 UTC ( #990934=note: print w/replies, xml ) Need Help??


in reply to Clearing anonymous Tk widgets

I am trying to develop a config file manager.

Any particular reason?

Have you seen Config::Model/ config-edit#-ui ?

Works pretty well

Replies are listed 'Best First'.
Re^2: Clearing anonymous Tk widgets
by murrayn (Sexton) on Aug 31, 2012 at 09:56 UTC
    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.

      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://990934]
help
Chatterbox?
[oakbox]: Anyone else having difficulty looking at search.cpan.org?
[oakbox]: I keep getting a proxy error.
[marto]: try http://metacpan. org/
[marto]: I can't access search.cpan right now either. I prefer the metacpan search and general formatting anyway. Also it seems faster
[oakbox]: Yeah, the front page of cpan.org uses metacpan.org now for search results
[oakbox]: but there are a billion links 'out there' linking to search.cpan.org.
[marto]: yep :)
[Discipulus]: being her marto, can you explain what "Par for the course I'm afraid." means?
Discipulus here..

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-07-26 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (388 votes). Check out past polls.