diff options
author | Guido van Rossum <guido@python.org> | 1996-01-26 17:45:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-01-26 17:45:07 (GMT) |
commit | efa3143abdd4fee35415f06edccaa373dc9fb60e (patch) | |
tree | 4ea3aedcd998710cdc322601af37d905c2ec4313 | |
parent | 15c4fecffc6cc3f51130dff942d7b8c4040ad423 (diff) | |
download | cpython-efa3143abdd4fee35415f06edccaa373dc9fb60e.zip cpython-efa3143abdd4fee35415f06edccaa373dc9fb60e.tar.gz cpython-efa3143abdd4fee35415f06edccaa373dc9fb60e.tar.bz2 |
add keyword args to CanvasItem class __init__
-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 da68195..4d278ca 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 da68195..4d278ca 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 |