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
a5c59972
Commit
a5c59972
authored
Jul 01, 2014
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete a few unused names suggested by pyflakes.
parent
aee638d0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
Lib/idlelib/CallTipWindow.py
Lib/idlelib/CallTipWindow.py
+7
-5
Lib/idlelib/ClassBrowser.py
Lib/idlelib/ClassBrowser.py
+1
-1
Lib/idlelib/Debugger.py
Lib/idlelib/Debugger.py
+0
-1
Lib/idlelib/configHandler.py
Lib/idlelib/configHandler.py
+1
-1
No files found.
Lib/idlelib/CallTipWindow.py
View file @
a5c59972
...
...
@@ -2,9 +2,8 @@
After ToolTip.py, which uses ideas gleaned from PySol
Used by the CallTips IDLE extension.
"""
from
Tkinter
import
*
from
Tkinter
import
Toplevel
,
Label
,
LEFT
,
SOLID
,
TclError
HIDE_VIRTUAL_EVENT_NAME
=
"<<calltipwindow-hide>>"
HIDE_SEQUENCES
=
(
"<Key-Escape>"
,
"<FocusOut>"
)
...
...
@@ -133,13 +132,16 @@ class CallTip:
return
bool
(
self
.
tipwindow
)
def
_calltip_window
(
parent
):
def
_calltip_window
(
parent
):
# htest #
import
re
from
Tkinter
import
Tk
,
Text
,
LEFT
,
BOTH
root
=
Tk
()
root
.
title
(
"Test calltips"
)
width
,
height
,
x
,
y
=
list
(
map
(
int
,
re
.
split
(
'[x+]'
,
parent
.
geometry
())))
root
.
geometry
(
"+%d+%d"
%
(
x
,
y
+
150
))
class
MyEditWin
:
# co
mpare
nceptually an editor_window
class
MyEditWin
:
# conceptually an editor_window
def
__init__
(
self
):
text
=
self
.
text
=
Text
(
root
)
text
.
pack
(
side
=
LEFT
,
fill
=
BOTH
,
expand
=
1
)
...
...
@@ -161,7 +163,7 @@ def _calltip_window(parent):
def
calltip_hide
(
self
,
event
):
self
.
calltip
.
hidetip
()
editwin
=
MyEditWin
()
MyEditWin
()
if
__name__
==
'__main__'
:
from
idlelib.idle_test.htest
import
run
...
...
Lib/idlelib/ClassBrowser.py
View file @
a5c59972
...
...
@@ -101,7 +101,7 @@ class ModuleBrowserTreeItem(TreeItem):
return
[]
try
:
dict
=
pyclbr
.
readmodule_ex
(
name
,
[
dir
]
+
sys
.
path
)
except
ImportError
,
msg
:
except
ImportError
:
return
[]
items
=
[]
self
.
classes
=
{}
...
...
Lib/idlelib/Debugger.py
View file @
a5c59972
import
os
import
bdb
import
types
from
Tkinter
import
*
from
idlelib.WindowList
import
ListedToplevel
from
idlelib.ScrolledList
import
ScrolledList
...
...
Lib/idlelib/configHandler.py
View file @
a5c59972
...
...
@@ -20,7 +20,7 @@ configuration problem notification and resolution.
import
os
import
sys
import
string
from
ConfigParser
import
ConfigParser
,
NoOptionError
,
NoSectionError
from
ConfigParser
import
ConfigParser
class
InvalidConfigType
(
Exception
):
pass
class
InvalidConfigSet
(
Exception
):
pass
...
...
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