From: INFO on
running this code I get full cpu usage:

package require Tk

ttk::label .l0 -text "Details:" -anchor center
grid .l0 -sticky w

ttk::button .create -text {Create folder}
pack .create -side bottom -fill x

vwait forever

is this a bug?
From: Gerald W. Lester on
INFO @ AurovilleRadio - wrote:
> running this code I get full cpu usage:
>
> package require Tk
>
> ttk::label .l0 -text "Details:" -anchor center
> grid .l0 -sticky w
>
> ttk::button .create -text {Create folder}
> pack .create -side bottom -fill x
>
> vwait forever
>
> is this a bug?

This is a documented restriction. Only one type of geometry manager can be
used on a master ("." in this case) at a time.

You can, of course, use a different geometry managers on different masters.
The following is legal:
ttk::frame .f1
pack .f1 -side bottom
ttk::label .f1.l0 -text "Details:" -anchor center
grid .f1.l0 -sticky w

ttk::button .create -text {Create folder}
pack .create -side bottom -fill x


Note -- with wish no vwait is needed.

--
+------------------------------------------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
From: INFO on
for me it looks like a bug. If there is a restriction then give an
error message. 100% cpu is not a user friendly message :-)

thanks for the tip with vwait. long time since I played with Tk and it
feels nice to be back.


Gerald W. Lester wrote:
> INFO @ AurovilleRadio - wrote:
> > running this code I get full cpu usage:
> >
> > package require Tk
> >
> > ttk::label .l0 -text "Details:" -anchor center
> > grid .l0 -sticky w
> >
> > ttk::button .create -text {Create folder}
> > pack .create -side bottom -fill x
> >
> > vwait forever
> >
> > is this a bug?
>
> This is a documented restriction. Only one type of geometry manager can be
> used on a master ("." in this case) at a time.
>
> You can, of course, use a different geometry managers on different masters.
> The following is legal:
> ttk::frame .f1
> pack .f1 -side bottom
> ttk::label .f1.l0 -text "Details:" -anchor center
> grid .f1.l0 -sticky w
>
> ttk::button .create -text {Create folder}
> pack .create -side bottom -fill x
>
>
> Note -- with wish no vwait is needed.
>
> --
> +------------------------------------------------------------------------+
> | Gerald W. Lester |
> |"The man who fights for his ideals is the man who is alive." - Cervantes|
> +------------------------------------------------------------------------+
From: Alexandre Ferrieux on
On Feb 9, 10:03 am, "INFO @ AurovilleRadio -"
<i...(a)aurovilleradio.org> wrote:
> for me it looks like a bug. If there is a restriction then give an
> error message. 100% cpu is not a user friendly message :-)

You are right, and it is fixed in 8.6 HEAD.
For the discussion about backporting, follow the tracker item at

https://sourceforge.net/tracker/?func=detail&aid=219967&group_id=12997&atid=112997

-Alex