[Patches] [ python-Patches-457713 ] Allow "itemconfigure" for Listboxes.

noreply@sourceforge.net noreply@sourceforge.net
Sun, 02 Sep 2001 09:25:02 -0700


Patches item #457713, was opened at 2001-09-02 03:20
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=457713&group_id=5470

Category: Tkinter
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Joseph A Knapka (jknapka)
Assigned to: Nobody/Anonymous (nobody)
>Summary: Allow "itemconfigure" for Listboxes.

Initial Comment:
This patch allows foreground and background
colors to be configured for individual items
in a Listbox. The "itemconfigure" and "itemcget"
code from Canvas is pulled out into a new mixin
class which is inherited by Canvas and Listbox.
It seems to "just work", unless I am neglecting
some subtle aspect of Tkinter code. The patch
is against the Python 2.1.1 Tkinter.py file.

(Note: this patch addresses #426880, for which
someone neglected to provide code. I am
not, incidentally, the individual who submitted
the earlier patch :-)


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

>Comment By: Joseph A Knapka (jknapka)
Date: 2001-09-02 09:25

Message:
Logged In: YES 
user_id=118570

Err... are you saying you'd prefer to have the
item configuration code duplicated in Canvas
and Listbox? The only difference
between this patch and the bug 457487 one is
that that one uses cut+paste, and this one
uses inheritance.

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

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-09-02 06:48

Message:
Logged In: YES 
user_id=6380

Hm, I just checked in yet another contributed patch that
added Listbox.itemconfigure, but without refactoring and
without itemcget. Would you mind integrating that into your
patch?
See bug #457487.

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=457713&group_id=5470