diff options
-rw-r--r-- | Lib/lib-tk/Canvas.py | 6 | ||||
-rwxr-xr-x | 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 |