diff options
author | Guido van Rossum <guido@python.org> | 1997-08-14 14:15:54 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-14 14:15:54 (GMT) |
commit | f53c86c2b65edc65db524d98aa42a06605c59de8 (patch) | |
tree | 52b0ee48e6067ad6457ceaac3ffebb57ddfe55d7 /Lib/lib-tk/Tkinter.py | |
parent | fcaf26e245666f34ac77dcfdf3bee2550c8dff03 (diff) | |
download | cpython-f53c86c2b65edc65db524d98aa42a06605c59de8.zip cpython-f53c86c2b65edc65db524d98aa42a06605c59de8.tar.gz cpython-f53c86c2b65edc65db524d98aa42a06605c59de8.tar.bz2 |
Add dummies for create/delete filehandles, just so that vanilla Grail
0.3 won't break on Windows.
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index dbf59b1..ddb017e 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -15,6 +15,12 @@ TclVersion = _string.atof(_tkinter.TCL_VERSION) READABLE = _tkinter.READABLE WRITABLE = _tkinter.WRITABLE EXCEPTION = _tkinter.EXCEPTION + +# These are not always defined, e.g. not on Win32 with Tk 8.0 :-( +try: _tkinter.createfilehandler +except AttributeError: _tkinter.createfilehandler = None +try: _tkinter.deletefilehandler +except AttributeError: _tkinter.deletefilehandler = None def _flatten(tuple): |