【发布时间】:2014-06-04 14:23:36
【问题描述】:
我使用 Notepad++ 中的快捷方式直接在 Python IDLE 中运行我的 Python 文件。 从 shorcut.xml 中,你可以看到我是如何使用它的:
<Command name="runinpython" Ctrl="no" Alt="yes" Shift="yes" Key="81">"C:\Python27\Lib\idlelib\idle.pyw" -r "$(FULL_CURRENT_PATH)"</Command>
问题是:每次我按Shift+Alt+Q,它都会打开另一个空闲窗口,我只想打开它一次,然后在其中运行我的 .py 文件,否则我必须关闭空闲窗口每次执行后。
你知道怎么做吗? 谢谢
【问题讨论】:
标签: python keyboard-shortcuts notepad++ python-idle