tkinter: option_add() problem
Bob van der Poel
bvdpoel at uniserve.com
Mon Jun 19 12:26:31 EDT 2000
Thanks! Works perfectly (of course). Ummm, how in the world is someone
to know this from reading the tk and tkinter docs?
richard_chamberlain wrote:
>
> 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
> >
--
__
/ ) / Bob van der Poel
/--< ____/__ bvdpoel at uniserve.com
/___/_(_) /_) http://users.uniserve.com/~bvdpoel
More information about the Python-list
mailing list