For Programmers: Free Programming Magazines  


Home > Archive > Tcl > September 2006 > tile entry









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author tile entry
Manfred Stelzhammer

2006-09-03, 7:00 pm

I use:

package require tile

style configure My.TEntry -font Font16
style configure My.TLabel -font Font16

pack [ttk::label .lab -style My.TLabel]
pack [ttk::entry .en -style My.TEntry]



The label field .lab works, the fontheight is 16.
The entry field .en doesn't work, the fontheight is normal.

Why??

I use WinXP with Tcl/Tl 8.4.9 and tile 0.7.2.


Regards
Manfred
Joe English

2006-09-11, 7:02 pm

Manfred Stelzhammer wrote:
>
>style configure My.TEntry -font Font16
>style configure My.TLabel -font Font16
>
>pack [ttk::label .lab -style My.TLabel]
>pack [ttk::entry .en -style My.TEntry]
>
>The label field .lab works, the fontheight is 16.
>The entry field .en doesn't work, the fontheight is normal.
>
>Why??


The ttk::label widget -font option has a NULL default value,
but the ttk::entry widget does not, so the widget option
takes precedence in the latter case.

>I use WinXP with Tcl/Tl 8.4.9 and tile 0.7.2.


This behavior is still present in Tile 0.7.6 and CVS HEAD.
(There's still a couple places in the ttk::entry widget implementation
that use the widget '-font' option instead of querying the style
database, so it can't have a NULL default yet. Will be fixed
eventually...)


--Joe English
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com