summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2001-11-21 05:56:26 (GMT)
committerSteven M. Gava <elguavas@python.net>2001-11-21 05:56:26 (GMT)
commit3b55a891a197212b34b0c077f72cb3af752468ec (patch)
treee2ccfbe1dec57eb9a4dabb73e7010974a24d95c4 /Lib/idlelib/EditorWindow.py
parent72f8213ba4b960bdf540a1cc494ac699170c9dec (diff)
downloadcpython-3b55a891a197212b34b0c077f72cb3af752468ec.zip
cpython-3b55a891a197212b34b0c077f72cb3af752468ec.tar.gz
cpython-3b55a891a197212b34b0c077f72cb3af752468ec.tar.bz2
back in harness on new config system
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index ed90d27..2fe1810 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -17,7 +17,7 @@ import webbrowser
import idlever
import WindowList
from IdleConf import idleconf
-import aboutDialog, textView
+import aboutDialog, textView, configDialog
# The default tab setting for a Text widget, in average-width characters.
TK_TABWIDTH_DEFAULT = 8
@@ -123,6 +123,7 @@ class EditorWindow:
text.bind("<<view-readme>>", self.view_readme)
text.bind("<<python-docs>>", self.python_docs)
text.bind("<<about-idle>>", self.about_dialog)
+ text.bind("<<open-config-dialog>>", self.config_dialog)
text.bind("<<open-module>>", self.open_module)
text.bind("<<do-nothing>>", lambda event: "break")
text.bind("<<select-all>>", self.select_all)
@@ -220,6 +221,7 @@ class EditorWindow:
("edit", "_Edit"),
("format", "F_ormat"),
("run", "_Run"),
+ #("settings", "_Settings"),
("windows", "_Windows"),
("help", "_Help"),
]
@@ -278,6 +280,9 @@ class EditorWindow:
def about_dialog(self, event=None):
aboutDialog.AboutDialog(self.top,'About IDLEfork')
+ def config_dialog(self, event=None):
+ configDialog.ConfigDialog(self.top,'Settings')
+
def good_advice(self, event=None):
tkMessageBox.showinfo('Advice', "Don't Panic!", master=self.text)