mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
bpo-5680: IDLE: Customize running a module (GH-13763)
The initialize options are 1) add command line options, which are appended to sys.argv as if passed on a real command line, and 2) skip the shell restart. The customization dialog is accessed by a new entry on the Run menu.
(cherry picked from commit 201bc2d18b
)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
This commit is contained in:
parent
f29a5770c2
commit
ae526ee320
11 changed files with 211 additions and 51 deletions
|
@ -304,6 +304,7 @@ class EditorWindow(object):
|
|||
scriptbinding = ScriptBinding(self)
|
||||
text.bind("<<check-module>>", scriptbinding.check_module_event)
|
||||
text.bind("<<run-module>>", scriptbinding.run_module_event)
|
||||
text.bind("<<run-custom>>", scriptbinding.run_custom_event)
|
||||
text.bind("<<do-rstrip>>", self.Rstrip(self).do_rstrip)
|
||||
ctip = self.Calltip(self)
|
||||
text.bind("<<try-open-calltip>>", ctip.try_open_calltip_event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue