Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Q: How to Change Pmw.ComboBox width ??

Thread Tools

Re: Q: How to Change Pmw.ComboBox width ??

Martin Franklin
Posts: n/a
On Fri, 2003-09-26 at 10:14, Camilo Olarte wrote:
> Hello list,
> I was trying to make a Pmw.ComboBox and while using it i
> needed to change its width.
> I tried to configure it's inner components directly like _listbox.config
> but nothing changes..
> By default in my computer this combobox width is of 12 (characters)
> and since I am showing number of the month i need only 3 characters.
> i could use a Pmw.Counter but my boss don't likes it's arrows ...
> Here is some sample code of what i'm doing.
> import Tkinter, Pmw
> class DemoCombo:
> def __init__(self, parent):
> parent.configure(background = 'white')
> arrmes = [1,2,3,4,5,6,7,8,9,10,11,12]
> # Create and pack the dropdown ComboBox.
> self.dropdown = Pmw.ComboBox(parent,label_text = 'Month:',
> labelpos = 'n',scrolledlist_items = arrmes,
> scrolledlist_usehullsize = 1,)

You need to configure the Entry widget.....

entry_width = 3


self.dropdown = Pmw.ComboBox(parent, label_text = 'Month:',
labelpos = 'n', scrolledlist_items = arrmes,
scrolledlist_usehullsize = 1, entry_width = 3)


Martin Franklin <(E-Mail Removed)>

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Resize Iframe width on change of gridview width ASP .Net 1 01-09-2007 08:40 PM
Resize Iframe width on change of gridview width ASP .Net 0 01-09-2007 07:05 PM
Textbox width scaling to width of data not width of page? AndrewF ASP .Net 1 10-10-2005 04:38 PM
JComboBox width, dropdown list width Xu Java 11 07-15-2005 11:54 PM