Fonts in Pmw.ScrolledListBox?

Matthew Dixon Cowles matt at mondoinfo.com
Sat Feb 10 19:29:46 EST 2001


On Sat, 10 Feb 2001 18:14:36 -0600, Barron <barron at bitment.com> wrote:

>How does one set the font in a Pmw.ScrolledListBox. The "font" option
>doesn't  seem to work like it does in a regular list box and I didn't see
>anything about fonts in the Megawidget documentation for the
>ScrolledListBox.

Barron,
You want something like:

mylistbox.component("listbox").configure(font="7x13")

Since Pmw commonly wraps up standard Tkinter widgets, configuring the
ordinary widget is usually just a matter of asking the megawidget for
it and doing the configuration normally.

Regards,
Matt



More information about the Python-list mailing list