mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Delete a few unused names suggested by pyflakes.
This commit is contained in:
parent
f18f87111b
commit
44f09ebd0f
5 changed files with 10 additions and 10 deletions
|
|
@ -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: # comparenceptually 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue