Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Display new widgets after MainLoop

by shmem (Canon)
on Aug 11, 2010 at 16:53 UTC ( #854454=note: print w/ replies, xml ) Need Help??


in reply to Display new widgets after MainLoop

(after MainLoop has been called)

Not after the MainLoop. This loop never exits (if you don't destroy the MainWindow, that is).

Instead, you bind events to code (subroutines), which does what you want (e.g. create widgets). Then if a event is triggered, the code bound to this event is executed.

populate a grid managed frame

You just create those widgets as children of the frame:

$Frame->$Widget(@args);

where $Widget is Button, Frame, Entry, Canvas, ... etc.


Comment on Re: Display new widgets after MainLoop
Download Code
Re^2: Display new widgets after MainLoop
by aquarium (Curate) on Aug 11, 2010 at 23:05 UTC
    It's been a while since TK for me..but i do remember that had to re-pack parent container under certain circumstances to get widgets to update.
    the hardest line to type correctly is: stty erase ^H

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (22)
As of 2014-09-16 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (24 votes), past polls