tkinter docs?
Greg McFarlane
gregm at iname.com
Tue May 11 19:57:05 EDT 1999
On 11 May, Doug Hellmann wrote:
> For a Pmw.ScrolledText widget, you want to specify the width or height
> of the 'text' component of the composite widget. To do that, you can
> set the attribute of the text component during creation or through a
> configure call to the composite with the syntax:
>
> widget.configure(<component>_<attribute>=<value>)
>
> For example:
>
> myScrolledText.configure(text_height=15)
>
> will give you a 15 line high scrolled text area. This syntax becomes
> *really* fun when you start creating composite widgets made up of other
> composite widgets.
Pmw has aliases which simplifies access to sub-sub-sub-components.
For example, a
Pmw.ComboBoxDialog megawidget contains a
Pmw.ComboBox megawidget which in turn contains a
Pmw.ScrolledListBox megawidget which contains a
Tkinter.Listbox widget.
You can configure the Tkinter.Listbox widget using any of the
following:
dlg = Pmw.ComboBoxDialog()
# Using chained component() methods:
dlg.component('combobox').component('scrolledlist').\
component('listbox').configure(height = 15)
# Using full component name:
dlg.configure(combobox_scrolledlist_listbox_height = 15)
# Using component alias:
dlg.configure(listbox_height = 15)
The aliases for each megawidget are given in the Pmw manual pages.
Pmw:
http://www.dscpl.com.au/pmw/
--
Greg McFarlane
INMS Telstra Australia (gregm at iname.com)
More information about the Python-list
mailing list