summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-01-26 17:45:07 (GMT)
committerGuido van Rossum <guido@python.org>1996-01-26 17:45:07 (GMT)
commitefa3143abdd4fee35415f06edccaa373dc9fb60e (patch)
tree4ea3aedcd998710cdc322601af37d905c2ec4313 /Lib/tkinter
parent15c4fecffc6cc3f51130dff942d7b8c4040ad423 (diff)
downloadcpython-efa3143abdd4fee35415f06edccaa373dc9fb60e.zip
cpython-efa3143abdd4fee35415f06edccaa373dc9fb60e.tar.gz
cpython-efa3143abdd4fee35415f06edccaa373dc9fb60e.tar.bz2
add keyword args to CanvasItem class __init__
Diffstat (limited to 'Lib/tkinter')
-rwxr-xr-xLib/tkinter/Canvas.py6
1 files changed, 3 insertions, 3 deletions
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