Bugs item #1600182, was opened at 2006-11-21 05:27 Message generated for change (Comment added) made by mkiever 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: Matthias Kievernagel (mkiever) Date: 2007-01-19 19:55 Message: Logged In: YES user_id=1477880 Originator: NO Or it might just be a problem with default colours. On my Linux box the selected item is hard to read. The shades of grey are very similar. Try changing the colours (disabledforeground/disabledbackground/readonlybackground). This is most probably no Python bug, as options are sent to the Tcl-Interpreter mostly without any change or magic. Greetings, Matthias Kievernagel ---------------------------------------------------------------------- Comment By: Matthias Kievernagel (mkiever) Date: 2007-01-19 19:48 Message: Logged In: YES user_id=1477880 Originator: NO Or it might just be a problem with default colours. On my Linux box the selected item is hard to read. The shades of grey are very similar. Try changing the colours (disabledforeground/disabledbackground/readonlybackground). This is most probably no Python bug, as options are sent to the Tcl-Interpreter mostly without any change or magic. Greetings, Matthias Kievernagel ---------------------------------------------------------------------- Comment By: Tim Wegener (twegener) Date: 2006-11-21 05:43 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 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com