[Israel.pm] Tk: requested size of a widget?
choo at actcom.co.il
Tue Mar 20 10:47:18 PDT 2007
when i worked with tcl/tk, i always used the 'pack' command to pack
objects together. i never used fixed sizes - just the expand and fill
attributes of pack-ing objects. there was no flicker when drawing the
windows, as far as i remember.
On Tue, 20 Mar 2007, Shmuel Fomberg wrote:
> Date: Tue, 20 Mar 2007 19:41:14 +0200
> From: Shmuel Fomberg <semuelf at 012.net.il>
> Reply-To: Perl in Israel <perl at perl.org.il>
> To: perl at perl.org.il
> Subject: [Israel.pm] Tk: requested size of a widget?
> Hello There.
> I am trying to calculate how big a window should be, before opening it.
> The problem is that any sub-widget of that window returns '1' for any
> reqheight/regwidth request.
> Doing 'update' makes them answer the right sizes, but now the window
> is already showing, and then I resize it.
> (in short, I want to avoid that flicker, and resize before the update)
> any idea?
> Perl mailing list
> Perl at perl.org.il
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
More information about the Perl