diff options
| author | Georg Brandl <georg@python.org> | 2010-10-25 17:50:20 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-10-25 17:50:20 (GMT) |
| commit | 856023a098c60ba0d2bcfd01c5cd8ccff7db97b5 (patch) | |
| tree | e2af1c1b988b218c1408fac9db4b3dc3465819ea /Demo/tkinter/guido/AttrDialog.py | |
| parent | 07e4f1565b8d922fe0df5cf3a15e113f7c562046 (diff) | |
| download | cpython-856023a098c60ba0d2bcfd01c5cd8ccff7db97b5.zip cpython-856023a098c60ba0d2bcfd01c5cd8ccff7db97b5.tar.gz cpython-856023a098c60ba0d2bcfd01c5cd8ccff7db97b5.tar.bz2 | |
#3018: tkinter demo fixes for py3k.
Diffstat (limited to 'Demo/tkinter/guido/AttrDialog.py')
| -rw-r--r-- | Demo/tkinter/guido/AttrDialog.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Demo/tkinter/guido/AttrDialog.py b/Demo/tkinter/guido/AttrDialog.py index 44d9766..7acd341 100644 --- a/Demo/tkinter/guido/AttrDialog.py +++ b/Demo/tkinter/guido/AttrDialog.py @@ -120,7 +120,7 @@ class Dialog: cl = self.classes[c] except KeyError: cl = 'unknown' - if type(cl) == tuple: + if type(cl) is tuple: cl = self.enumoption elif cl == 'boolean': cl = self.booleanoption @@ -435,12 +435,11 @@ def remotetest(root, app): list.app = app # Pass it on to handler def opendialogs(e): - import string list = e.widget sel = list.curselection() for i in sel: item = list.get(i) - widget = string.split(item)[0] + widget = item.split()[0] RemoteWidgetDialog(list, list.app, widget) if widget == '.': continue try: |
