Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1d5cec4f
Commit
1d5cec4f
authored
Jul 06, 2002
by
Kurt B. Kaiser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code.
parent
a3436d25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
Lib/idlelib/FrameViewer.py
Lib/idlelib/FrameViewer.py
+0
-38
No files found.
Lib/idlelib/FrameViewer.py
deleted
100644 → 0
View file @
a3436d25
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment