Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

TCL(Tool Command Language) Scripting

pack+grid frame vs. (BWidget) LabelFrame


Hi there,

whats the Problem with the following code:

--cut--
package require BWidget

LabelFrame .f

label .f.l1 -text bla
label .f.l2 -text bli
label .f.l3 -text bla
label .f.l4 -text bli

pack .f -fill both -expand 1

grid .f.l1 .f.l2
grid .f.l3 .f.l4
--cut--

Works fine with an ordinary frame!

Sven

--
"Whenever there is a conflict between human rights and property
rights, human rights must prevail." (Abraham Lincoln)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web

According to the LabelFrame manual page:

pathName getframe
    Return the frame where the user can create any other widget.

So you have to create your widgets inside [.f getframe], not inside
.f.

You are aware that Tk has a native labelframe widget that does work
correctly with your example code?

Schelte.
--
set Reply-To [string map {nospam schelte} $header(From)]

Schelte Bron <nos@wanadoo.nl> wrote:
> You are aware that Tk has a native labelframe widget that does work
> correctly with your example code?

Hm. Are you trying to tell me that BWidget is obsolete?

Sven

--
Kernel panic: I have no root and I want to scream
(Linux Kernel Error Message)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web

Sven Geggus wrote:
> Schelte Bron <nos@wanadoo.nl> wrote:
>> You are aware that Tk has a native labelframe widget that does
>> work correctly with your example code?

> Hm. Are you trying to tell me that BWidget is obsolete?

Not at all. BWidget is more than only LabelFrame. And I'm actually
not sure what the BWidget LabelFrame does. According to the BWidget
documentation the native Tk labelframe is more like the BWidget
TitleFrame. But if the native labelframe fullfills your needs, I
would use that instead of the BWidget version. But that's just me.

Schelte.
--
set Reply-To [string map {nospam schelte} $header(From)]

Sven Geggus wrote:
> Schelte Bron <nos@wanadoo.nl> wrote:

>> You are aware that Tk has a native labelframe widget that does work
>> correctly with your example code?

> Hm. Are you trying to tell me that BWidget is obsolete?

> Sven

BWidget isn't obsolete--a new version (1.8) was released last fall--but
parts of it duplicate the widgets provided by the Tk core and Tile, such
as the tabnotebook, comobox, labelframe, and panewindow. The good thing
is that you can mix and match widget sets. I use the BWidget tree view
because it is simple and easy to configure, and the BWidget listbox,
because it supports images with list items; here the BWidget solution is
better or simpler than the alternatives, such as TkTreeCtrl.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc