tkinter: option_add() problem
richard_chamberlain
richard_chamberlain at ntlworld.com
Mon Jun 19 02:07:12 EDT 2000
Hi Bob,
try
root.option_add('*Font','Times 14 bold')
Richard
Bob van der Poel <bvdpoel at uniserve.com> wrote in message
news:394BF3CF.450F776E at uniserve.com...
>
> Using tkinter to modify the option database I CAN do things like:
>
> root.option_add( '*activeBackground', 'white')
>
> However,
>
> root.option_add( '*Font', "family times -weight bold -size 14" )
>
> gives me the error message:
>
> TclError: expected integer but got "times"
>
> the equivalent??? tcl:
>
> option add *Font {-family times -weight bold -size 14}
>
> works fine.
>
> Help!
>
>
> --
> __
> / ) / Bob van der Poel
> /--< ____/__ bvdpoel at uniserve.com
> /___/_(_) /_) http://users.uniserve.com/~bvdpoel
>
More information about the Python-list
mailing list