Fonts in Pmw.ScrolledListBox?

Martin Franklin martin.franklin at westerngeco.com
Mon Feb 12 03:17:27 EST 2001


I think you can also do it when you create the widget...(untested)

lb=Pmw.ScrolledListBox(root, listbox_font='7x15', listbox_height=8,
labelpos='n' ..... etc)

Martin

Matthew Dixon Cowles wrote:
>
> 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
> --
> http://mail.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list