예제 #1
0
    def ctrld(self):
        proxy = self.get_backend_proxy()
        if not proxy:
            return

        if get_shell().has_pending_input():
            messagebox.showerror(
                "Can't perform this action",
                "Ctrl+D only has effect on an empty line / prompt.\n"
                + "Submit current input (press ENTER) and try again",
            )
            return

        proxy.send_command(EOFCommand())
        self._set_state("running")
예제 #2
0
파일: __init__.py 프로젝트: salamiya/thonny
 def _soft_reboot_and_run_main(self):
     self._send_msg(EOFCommand())
예제 #3
0
 def soft_reboot(self):
     self._send_msg(EOFCommand())