From: INFO on 9 Feb 2010 01:11 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 9 Feb 2010 01:51 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 9 Feb 2010 04:03 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 9 Feb 2010 05:04 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
|
Pages: 1 Prev: Button size weirdness Next: Problem in mixing namespace separator and widget path |