summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-07-06 01:07:15 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-07-06 01:07:15 (GMT)
commit1d5cec4fd20f9b656959d5cbfca8d16081b2a89e (patch)
treeada978b28fe34927ac4d4aad16b40954f7abb693 /Lib/idlelib
parenta3436d253c492953957238f1886cd99d6086c8ee (diff)
downloadcpython-1d5cec4fd20f9b656959d5cbfca8d16081b2a89e.zip
cpython-1d5cec4fd20f9b656959d5cbfca8d16081b2a89e.tar.gz
cpython-1d5cec4fd20f9b656959d5cbfca8d16081b2a89e.tar.bz2
Remove dead code.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/FrameViewer.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/Lib/idlelib/FrameViewer.py b/Lib/idlelib/FrameViewer.py
deleted file mode 100644
index 2ce0935..0000000
--- a/Lib/idlelib/FrameViewer.py
+++ /dev/null
@@ -1,38 +0,0 @@
-from repr import Repr
-from Tkinter import *
-
-class FrameViewer:
-
- def __init__(self, root, frame):
- self.root = root
- self.frame = frame
- self.top = Toplevel(self.root)
- self.repr = Repr()
- self.repr.maxstring = 60
- self.load_variables()
-
- def load_variables(self):
- row = 0
- if self.frame.f_locals is not self.frame.f_globals:
- l = Label(self.top, text="Local Variables",
- borderwidth=2, relief="raised")
- l.grid(row=row, column=0, columnspan=2, sticky="ew")
- row = self.load_names(self.frame.f_locals, row+1)
- l = Label(self.top, text="Global Variables",
- borderwidth=2, relief="raised")
- l.grid(row=row, column=0, columnspan=2, sticky="ew")
- row = self.load_names(self.frame.f_globals, row+1)
-
- def load_names(self, dict, row):
- names = dict.keys()
- names.sort()
- for name in names:
- value = dict[name]
- svalue = self.repr.repr(value)
- l = Label(self.top, text=name)
- l.grid(row=row, column=0, sticky="w")
- l = Entry(self.top, width=60, borderwidth=0)
- l.insert(0, svalue)
- l.grid(row=row, column=1, sticky="w")
- row = row+1
- return row