From efa3143abdd4fee35415f06edccaa373dc9fb60e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 26 Jan 1996 17:45:07 +0000 Subject: [PATCH] add keyword args to CanvasItem class __init__ --- Lib/lib-tk/Canvas.py | 6 +++--- Lib/tkinter/Canvas.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Lib/lib-tk/Canvas.py b/Lib/lib-tk/Canvas.py index da68195406..4d278ca13d 100644 --- a/Lib/lib-tk/Canvas.py +++ b/Lib/lib-tk/Canvas.py @@ -1,14 +1,14 @@ # This module exports classes for the various canvas item types -from Tkinter import Canvas, _isfunctype, _flatten +from Tkinter import Canvas, _flatten StringType = type('') DictionaryType = type({}) class CanvasItem: - def __init__(self, canvas, itemType, *args): + def __init__(self, canvas, itemType, *args, **kw): self.canvas = canvas - self.id = canvas._create(itemType, args) + self.id = canvas._create(itemType, args, kw) if not hasattr(canvas, 'items'): canvas.items = {} canvas.items[self.id] = self diff --git a/Lib/tkinter/Canvas.py b/Lib/tkinter/Canvas.py index da68195406..4d278ca13d 100755 --- a/Lib/tkinter/Canvas.py +++ b/Lib/tkinter/Canvas.py @@ -1,14 +1,14 @@ # This module exports classes for the various canvas item types -from Tkinter import Canvas, _isfunctype, _flatten +from Tkinter import Canvas, _flatten StringType = type('') DictionaryType = type({}) class CanvasItem: - def __init__(self, canvas, itemType, *args): + def __init__(self, canvas, itemType, *args, **kw): self.canvas = canvas - self.id = canvas._create(itemType, args) + self.id = canvas._create(itemType, args, kw) if not hasattr(canvas, 'items'): canvas.items = {} canvas.items[self.id] = self -- 2.50.1