Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

menu font on Windows XP

37 views
Skip to first unread message

Yaroslav Schekin

unread,
May 6, 2012, 5:01:18 AM5/6/12
to
Hi.

Can anyone explain to me the result of this script (tcl/tk 8.5/8.6
on Windows XP):
---
menu .a
puts [.a configure -font]
---
It prints:
-font font Font TkMenuFont {Tahoma 8}

Why current font value is {Tahoma 8}, not TkMenuFont?

WBR, Yaroslav Schekin.

Gerald W. Lester

unread,
May 6, 2012, 3:24:58 PM5/6/12
to
It returns the actual font used.


--
+------------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC |
| Email: Gerald...@kng-consulting.net |
+------------------------------------------------------------------------+

Yaroslav Schekin

unread,
May 7, 2012, 3:13:10 AM5/7/12
to
> It returns the actual font used.
But WHY? All the other widgets return named fonts, as it should be,
IMHO.

WBR, Yaroslav Schekin.

Gerald W. Lester

unread,
May 7, 2012, 11:22:21 PM5/7/12
to
On 5/7/12 2:13 AM, Yaroslav Schekin wrote:
>> It returns the actual font used.
> But WHY? All the other widgets return named fonts, as it should be,
> IMHO.

I'm guessing it is because menus are native widgets.
0 new messages