summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/twit/twit.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-08-20 20:21:38 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-08-20 20:21:38 (GMT)
commit9ebf2d2ca4694ec38ae07fcb8e7b7a115f5bf977 (patch)
treec00da186177ef0b9b6e230ffbe0998ecba1e8d40 /Mac/Tools/twit/twit.py
parent51f357049b6a83167e46af5e07e8ce1ea1be7b2f (diff)
downloadcpython-9ebf2d2ca4694ec38ae07fcb8e7b7a115f5bf977.zip
cpython-9ebf2d2ca4694ec38ae07fcb8e7b7a115f5bf977.tar.gz
cpython-9ebf2d2ca4694ec38ae07fcb8e7b7a115f5bf977.tar.bz2
Moved to unsupported: it never lived up to its expectancies, and for the Mac all the functionality is available in the IDE.
Diffstat (limited to 'Mac/Tools/twit/twit.py')
-rw-r--r--Mac/Tools/twit/twit.py59
1 files changed, 0 insertions, 59 deletions
diff --git a/Mac/Tools/twit/twit.py b/Mac/Tools/twit/twit.py
deleted file mode 100644
index 2cc3f41..0000000
--- a/Mac/Tools/twit/twit.py
+++ /dev/null
@@ -1,59 +0,0 @@
-"""twit - The Window-Independent Tracer.
-
-Interface:
-twit.main() Enter debugger in inactive interactive state
-twit.run(stmt, globals, locals) Enter debugger and start running stmt
-twit.post_mortem(traceback) Enter debugger in post-mortem mode on traceback
-twit.pm() Enter debugger in pm-mode on sys.last_traceback
-
-main program: nothing but a bit of glue to put it all together.
-
-Jack Jansen, CWI, August 1996."""
-
-import os
-import sys
-
-# Add our directory to path, if needed
-dirname = os.path.split(__file__)[0]
-if not dirname in sys.path:
- sys.path.append(dirname)
-
-if os.name == 'mac':
- import MacOS
- MacOS.splash(502) # Try to show the splash screen
- import mactwit_app; twit_app = mactwit_app
-else:
- try:
- import _tkinter
- have_tk = 1
- except ImportError:
- have_tk = 0
- if have_tk:
- import tktwit_app; twit_app = tktwit_app
- else:
- print 'Please implementent machine-dependent code and try again:-)'
- sys.exit(1)
-
-import sys
-
-def main():
- twit_app.Initialize()
- if os.name == 'mac':
- MacOS.splash()
- twit_app.Twit('none', None)
-
-def run(statement, globals=None, locals=None):
- twit_app.Initialize()
- twit_app.Twit('run', (statement, globals, locals))
-
-def post_mortem(t):
- Initialize()
- twit_app.Twit('pm', t)
-
-def pm():
- post_mortem(sys.last_traceback)
-
-if __name__ == '__main__':
- main()
-
-