Re: Can't resize widgets correctly.
- From: Donald Arseneau <asnd@xxxxxxxxx>
- Date: 27 Jun 2005 14:17:22 -0700
"Silas Justiniano" <silasju@xxxxxxxxx> writes:
> Hello people. I'm trying to make some simple application. See the code:
>
> #-----------------------BEGIN
> #------------------------------------------------------------
> #Programa (ainda sem nome)
> #Iniciado em 2005.06.27
> #por Silas Justiniano - silas@xxxxxxxxxxxx
> #------------------------------------------------------------
>
> #opcoes globais do programa
> option add *Entry.background white; #fundo das entry
>
> #cria as widgets
> label .lbCodigo -text Código
> label .lbISBN -text ISBN
> label .lbTitulo -text Título
>
> entry .txtCodigo -textvariable txtCodigo
> entry .txtISBN -textvariable txtIsbn
> entry .txtTitulo -textvariable txtTitulo
>
> #habilita o resize da grid
> grid columnconfigure . 0 -weight 1
> 1. I want that the first column always with the same size: 100 pixels,
> for example.
grid columnconfigure . 0 -weight 0 -minsize 100
grid columnconfigure . 1 -weight 1
>
> #posiciona e exibe os componentes
> grid .lbCodigo -sticky w
> grid .txtCodigo
> 2. The widgets are not resized as the grid.
then make them all -sticky nsew
--
Donald Arseneau asnd@xxxxxxxxx
.
- Follow-Ups:
- Re: Can't resize widgets correctly.
- From: Silas Justiniano
- Re: Can't resize widgets correctly.
- References:
- Can't resize widgets correctly.
- From: Silas Justiniano
- Can't resize widgets correctly.
- Prev by Date: building application in c - mingw - segmentation fault
- Next by Date: Re: double read on network files
- Previous by thread: Can't resize widgets correctly.
- Next by thread: Re: Can't resize widgets correctly.
- Index(es):
Relevant Pages
|
Loading