[ python-Bugs-1600182 ] Tix ComboBox entry is blank when not editable

SourceForge.net noreply at sourceforge.net
Tue Nov 21 06:43:17 CET 2006


Bugs item #1600182, was opened at 2006-11-21 15:57
Message generated for change (Comment added) made by twegener
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1600182&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tkinter
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tim Wegener (twegener)
Assigned to: Martin v. Löwis (loewis)
Summary: Tix ComboBox entry is blank when not editable

Initial Comment:
When setting editable=False for Tix.ComboBox, when selecting an item from the combo box, the selected item should appear in the entry field. In Windows this does not happen, and the entry field is dark grey and blank. 

When editable=True the label is visible.

Problem occurs in:
Python 2.3.5 (Windows)
Python 2.4.4 (Windows)
(the above appear to use tk 8.4)

Works fine in:
Python 2.2.2 (Red Hat 9)
Python 2.3.5 (Red Hat 9)
Python 2.4.1 (Red Hat 9)
Python 2.5 (Red Hat 9)
(all of the above with tk 8.3.5, tix 8.1.4)


----------------------------------------------------------------------

>Comment By: Tim Wegener (twegener)
Date: 2006-11-21 16:13

Message:
Logged In: YES 
user_id=434490
Originator: YES

The following workaround does the job:

entry = combobox.subwidget_list['entry']
entry.config(state='readonly')

It appears that when doing ComboBox(editable=False) the Entry widget is
being set to DISABLED rather than 'readonly'. 


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1600182&group_id=5470


More information about the Python-bugs-list mailing list