in reply to Height of a label widget in Tk

The call to MainLoop will pack the window and calculate the size of the widgets.
Create a Button to call a sub, it will give you the correct height.

The Tk-Debugger has it's own MainLoop, well sort of. So height will be printed correctly.

Update:
Putting a $main->update() before the print will work.

Replies are listed 'Best First'.
Re: Re: Height of a label widget in Tk
by Jouke (Curate) on May 25, 2001 at 20:32 UTC
    Your last suggestion works like a charm! Thanx! ++busunsl!

    Jouke Visser, Perl 'Adept'