It seems this should be simple, but I've looked through the documentation, and I just can't figure it out. I would like to change the initial/default width of a ComboBoxDialog widget. I suspect I need to use an option which is inherited, since there is no direct "width" option in the ComboBoxDialog widget. But I can't find any examples of this.
Does it have something to do with the "hull" of the widget? If someone can point me to some example usage of the hull component, that would be great.
I figured it out. As I suspected, once you know how it is so easy :) For the record, and in case others are wondering, here is how you do it. You access the component widgets ListBox:
myDialog = Pmw.ComboBoxDialog(parent)
You can create and configure in one line:
myDialog = Pmw.ComboBoxDialog(parent, listbox_height=20)
or use the short form of the option to configure:
Hope this helps.
Thank you Greg!
Log in to post a comment.