Code Comments
Programming Forum and web based access to our favorite programming groups.Hello Everyone, Can I pack a frame inside a Toplevel window? I can't get this code to work. toplevel .tops frame .frm pack .frm -in .tops It shows an error "can't pack .frm in .tops" I have used grid command also and got the same result. Thanking You, Binny V A http://www.geocities.com/binnyva
Post Follow-up to this message"Binny V A" <binnyva@hotmail.com> wrote in message news:1104519220.874538.201220@c13g2000cwb.googlegroups.com... > Hello Everyone, > > Can I pack a frame inside a Toplevel window? I can't get this > code to work. > > toplevel .tops > frame .frm > pack .frm -in .tops > > It shows an error "can't pack .frm in .tops" Sure you can, but the frame must first be a child of the *correct* toplevel window. Try this: toplevel .tops frame .tops.frm pack .tops.frm Notice, that in this simple case, you don't even need the "-in" argument... Jeff
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.