summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-14 14:15:54 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-14 14:15:54 (GMT)
commitf53c86c2b65edc65db524d98aa42a06605c59de8 (patch)
tree52b0ee48e6067ad6457ceaac3ffebb57ddfe55d7
parentfcaf26e245666f34ac77dcfdf3bee2550c8dff03 (diff)
downloadcpython-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.
-rw-r--r--Lib/lib-tk/Tkinter.py6
-rwxr-xr-xLib/tkinter/Tkinter.py6
2 files changed, 12 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):
diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py
index dbf59b1..ddb017e 100755
--- a/Lib/tkinter/Tkinter.py
+++ b/Lib/tkinter/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):