Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Height of a label widget in Tk

by TheoPetersen (Priest)
on May 25, 2001 at 17:04 UTC ( #83286=note: print w/ replies, xml ) Need Help??


in reply to Height of a label widget in Tk

In general you can't trust the values of attributes like this until the widget (or window) is displayed. The $w->waitVisibility method allows you to let the widget get displayed and then check matters of interest.

Inside of $w->waitVisibility Tk does updates and processes other events until the widget receives a Visibility event. If you want to handle this kind of thing asynchronously you could look at hooking into that event yourself.


Comment on Re: Height of a label widget in Tk
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2015-07-04 05:53 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 (57 votes), past polls