Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

History tends to exaggerate. -- Col. Green, "The Savage Curtain", stardate 5906.4


devel / comp.lang.tcl / Re: ttk::label

SubjectAuthor
* ttk::labelManfred Stelzhammer
`* ttk::labelgreg
 `* ttk::labelManfred Stelzhammer
  `* ttk::labelSchelte
   `- ttk::labelManfred Stelzhammer

1
ttk::label

<um96ci$2i68f$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13028&group=comp.lang.tcl#13028

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: manfred@antispam.at (Manfred Stelzhammer)
Newsgroups: comp.lang.tcl
Subject: ttk::label
Date: Sun, 24 Dec 2023 12:58:10 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <um96ci$2i68f$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Dec 2023 11:58:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d8004230ef03130bf47d9aabd91f3cd2";
logging-data="2693391"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ET+oebZSG+RNDUZDQj//vbm3q93M6XL4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:C+wwL4NVztFMhxGpNk+JtoHxgI8=
Content-Language: de-AT-frami
 by: Manfred Stelzhammer - Sun, 24 Dec 2023 11:58 UTC

Hi

##

wm geometry . 400x200
pack [ttk::label .lab1 -justify center -text testtext] -fill x
pack [label .lab2 -justify center -text testtext] -fill x

##

The text from .lab1 is on the right site.
The text from .lab2 is on the center.

Why this different behavior.

Do I something wrong.

regards and merry xmas

Manfred

Re: ttk::label

<da6ff5d5-b355-44d2-8429-fc1f9147bba3n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13030&group=comp.lang.tcl#13030

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:4081:b0:77f:3b81:60a2 with SMTP id f1-20020a05620a408100b0077f3b8160a2mr134503qko.5.1703423405362;
Sun, 24 Dec 2023 05:10:05 -0800 (PST)
X-Received: by 2002:a05:620a:1926:b0:77f:2e5f:80cf with SMTP id
bj38-20020a05620a192600b0077f2e5f80cfmr391617qkb.3.1703423405119; Sun, 24 Dec
2023 05:10:05 -0800 (PST)
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sun, 24 Dec 2023 05:10:04 -0800 (PST)
In-Reply-To: <um96ci$2i68f$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=185.250.212.15; posting-account=99ziWAoAAADLScDbI_CyfIcpa_gFZ0zh
NNTP-Posting-Host: 185.250.212.15
References: <um96ci$2i68f$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <da6ff5d5-b355-44d2-8429-fc1f9147bba3n@googlegroups.com>
Subject: Re: ttk::label
From: gregor.ebbing@googlemail.com (greg)
Injection-Date: Sun, 24 Dec 2023 13:10:05 +0000
Content-Type: text/plain; charset="UTF-8"
 by: greg - Sun, 24 Dec 2023 13:10 UTC

Manfred Stelzhammer schrieb am Sonntag, 24. Dezember 2023 um 12:58:16 UTC+1:
> Hi
>
> ##
>
> wm geometry . 400x200
> pack [ttk::label .lab1 -justify center -text testtext] -fill x
> pack [label .lab2 -justify center -text testtext] -fill x
>
> ##
>
> The text from .lab1 is on the right site.
> The text from .lab2 is on the center.
>
> Why this different behavior.
>
> Do I something wrong.
>
> regards and merry xmas
>
> Manfred

#label != ttk::label

package require Tk
##
#https://www.tcl.tk/man/tcl/TkCmd/label.html
#https://www.tcl.tk/man/tcl/TkCmd/ttk_label.html
wm geometry . 400x200
pack [ttk::label .lab1 -justify center -text "testtext 1"] -fill x
pack [ttk::label .lab2 -justify center -text "testtext 2"] -fill x

pack [label .lab3 -justify center -text "testtext 3"] -fill x
pack [label .lab4 -justify center -text "testtext 4"] -fill x

##

Gregor

Re: ttk::label

<um9cvv$2j6l3$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13031&group=comp.lang.tcl#13031

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: manfred@antispam.at (Manfred Stelzhammer)
Newsgroups: comp.lang.tcl
Subject: Re: ttk::label
Date: Sun, 24 Dec 2023 14:50:55 +0100
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <um9cvv$2j6l3$1@dont-email.me>
References: <um96ci$2i68f$1@dont-email.me>
<da6ff5d5-b355-44d2-8429-fc1f9147bba3n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Dec 2023 13:50:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d8004230ef03130bf47d9aabd91f3cd2";
logging-data="2726563"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19w6Ts/GnPYS9d9TvgAM7LWPGPXzub5bHg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3Mk0siy/wNqUP2enXsaUmU1VCb8=
In-Reply-To: <da6ff5d5-b355-44d2-8429-fc1f9147bba3n@googlegroups.com>
Content-Language: de-AT-frami
 by: Manfred Stelzhammer - Sun, 24 Dec 2023 13:50 UTC

I know

I think "-justify center" should show the text on both (ttk::label and
label) in the center.
But it doesn't. Why.

Regeards Manfred

Am 24.12.23 um 14:10 schrieb greg:
> Manfred Stelzhammer schrieb am Sonntag, 24. Dezember 2023 um 12:58:16 UTC+1:
>> Hi
>>
>> ##
>>
>> wm geometry . 400x200
>> pack [ttk::label .lab1 -justify center -text testtext] -fill x
>> pack [label .lab2 -justify center -text testtext] -fill x
>>
>> ##
>>
>> The text from .lab1 is on the right site.
>> The text from .lab2 is on the center.
>>
>> Why this different behavior.
>>
>> Do I something wrong.
>>
>> regards and merry xmas
>>
>> Manfred
>
> #label != ttk::label
>
> package require Tk
> ##
> #https://www.tcl.tk/man/tcl/TkCmd/label.html
> #https://www.tcl.tk/man/tcl/TkCmd/ttk_label.html
> wm geometry . 400x200
> pack [ttk::label .lab1 -justify center -text "testtext 1"] -fill x
> pack [ttk::label .lab2 -justify center -text "testtext 2"] -fill x
>
> pack [label .lab3 -justify center -text "testtext 3"] -fill x
> pack [label .lab4 -justify center -text "testtext 4"] -fill x
>
> ##
>
> Gregor

Re: ttk::label

<nnd$20e569dc$7563ae98@949695ce38be5761>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13032&group=comp.lang.tcl#13032

  copy link   Newsgroups: comp.lang.tcl
Date: Sun, 24 Dec 2023 15:34:38 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: ttk::label
Content-Language: en-US
Newsgroups: comp.lang.tcl
References: <um96ci$2i68f$1@dont-email.me>
<da6ff5d5-b355-44d2-8429-fc1f9147bba3n@googlegroups.com>
<um9cvv$2j6l3$1@dont-email.me>
From: nospam@wanadoo.nl (Schelte)
In-Reply-To: <um9cvv$2j6l3$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <nnd$20e569dc$7563ae98@949695ce38be5761>
Organization: KPN B.V.
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail
Lines: 22
Injection-Date: Sun, 24 Dec 2023 15:34:42 +0100
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
X-Received-Bytes: 1620
 by: Schelte - Sun, 24 Dec 2023 14:34 UTC

On 24/12/2023 14:50, Manfred Stelzhammer wrote:
> I think "-justify center" should show the text on both (ttk::label and
> label) in the center.
> But it doesn't. Why.

As the manual page says, the -justify option relates to multi-line
strings: "If there are multiple lines of text, specifies how the lines
are laid out relative to one another". Relative to one another, not to
the label overall. Since your labels only have one line of text, the
-justify option has no effect.

To center the text on the labels you must use a different option:
-anchor. This should do what you want:

wm geometry . 400x200
pack [ttk::label .lab1 -anchor center -text testtext] -fill x
pack [label .lab2 -anchor center -text testtext] -fill x

Schelte.

Re: ttk::label

<um9j2r$2k76h$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13033&group=comp.lang.tcl#13033

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: manfred@antispam.at (Manfred Stelzhammer)
Newsgroups: comp.lang.tcl
Subject: Re: ttk::label
Date: Sun, 24 Dec 2023 16:34:51 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <um9j2r$2k76h$1@dont-email.me>
References: <um96ci$2i68f$1@dont-email.me>
<da6ff5d5-b355-44d2-8429-fc1f9147bba3n@googlegroups.com>
<um9cvv$2j6l3$1@dont-email.me> <nnd$20e569dc$7563ae98@949695ce38be5761>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Dec 2023 15:34:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d8004230ef03130bf47d9aabd91f3cd2";
logging-data="2759889"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++5Y/BCUuSUYnzftPiEfXHUYwF4Fptqa8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nAWcpEXqzQ9X5RJUH1K7E7QQ+i8=
In-Reply-To: <nnd$20e569dc$7563ae98@949695ce38be5761>
Content-Language: de-AT-frami
 by: Manfred Stelzhammer - Sun, 24 Dec 2023 15:34 UTC

Am 24.12.23 um 15:34 schrieb Schelte:
> wm geometry . 400x200
> pack [ttk::label .lab1 -anchor center -text testtext] -fill x
> pack [label .lab2 -anchor center -text testtext] -fill x

Thank's.
That's what I'm looking for.

Regards

Manfred

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor