summaryrefslogtreecommitdiffstats
path: root/Tools/idle/FormatParagraph.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-25 16:02:22 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-25 16:02:22 (GMT)
commite689f0087ed3db8a5102ac4afdf147b50cd971e0 (patch)
treed60e0af3b16c9b82c9654f16a0d9010814e5d58d /Tools/idle/FormatParagraph.py
parent7ea8f8404c8291563a77af1fd6acd7920d24b24e (diff)
downloadcpython-e689f0087ed3db8a5102ac4afdf147b50cd971e0.zip
cpython-e689f0087ed3db8a5102ac4afdf147b50cd971e0.tar.gz
cpython-e689f0087ed3db8a5102ac4afdf147b50cd971e0.tar.bz2
Add close() method that breaks a cycle.
Diffstat (limited to 'Tools/idle/FormatParagraph.py')
-rw-r--r--Tools/idle/FormatParagraph.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/idle/FormatParagraph.py b/Tools/idle/FormatParagraph.py
index 671b303..76c52f5 100644
--- a/Tools/idle/FormatParagraph.py
+++ b/Tools/idle/FormatParagraph.py
@@ -36,6 +36,9 @@ class FormatParagraph:
def __init__(self, editwin):
self.editwin = editwin
+ def close(self):
+ self.editwin = None
+
def format_paragraph_event(self, event):
text = self.editwin.text
first, last = self.editwin.get_selection_indices()