Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: Perl-Tk Notebook - add a new tab to exisitng $mw

by Anonymous Monk
on Sep 15, 2016 at 20:20 UTC ( [id://1171898]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl-Tk Notebook - add a new tab to exisitng $mw
in thread Perl-Tk Notebook - add a new tab to exisitng $mw

So I understood that there is no chance to reuse my previously created window. dumb question: is it not possible to save "Tk::MainWindow=HASH(0xa1eeed8)" like this to a file and re-create the window handler in next run?

Use Tk::WidgetDump, it uses ->configure/->cget/->children and a few other methods to introspect widgets (get their settings properties sizes bindings configuration colors text values data ...)

Thats how you "save" a window to disk, you dump all its ocnfiguration and data ... and later you "load" it from disk ... you use ->configure/->cget/->children.....

  • Comment on Re^5: Perl-Tk Notebook - add a new tab to exisitng $mw

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-18 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found