##// END OF EJS Templates
Add 'executing' signal to FrontendWidget for symmetry with 'executed' signal.
epatters -
Show More
@@ -89,6 +89,10 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):'
89 custom_restart_kernel_died = QtCore.Signal(float)
89 custom_restart_kernel_died = QtCore.Signal(float)
90 custom_restart_requested = QtCore.Signal()
90 custom_restart_requested = QtCore.Signal()
91
91
92 # Emitted when a user visible 'execute_request' has been submitted to the
93 # kernel from the FrontendWidget. Contains the code to be executed.
94 executing = QtCore.Signal(object)
95
92 # Emitted when a user-visible 'execute_reply' has been received from the
96 # Emitted when a user-visible 'execute_reply' has been received from the
93 # kernel and processed by the FrontendWidget. Contains the response message.
97 # kernel and processed by the FrontendWidget. Contains the response message.
94 executed = QtCore.Signal(object)
98 executed = QtCore.Signal(object)
@@ -182,6 +186,8 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):'
182 msg_id = self.kernel_manager.xreq_channel.execute(source, hidden)
186 msg_id = self.kernel_manager.xreq_channel.execute(source, hidden)
183 self._request_info['execute'] = self._ExecutionRequest(msg_id, 'user')
187 self._request_info['execute'] = self._ExecutionRequest(msg_id, 'user')
184 self._hidden = hidden
188 self._hidden = hidden
189 if not hidden:
190 self.executing.emit(source)
185
191
186 def _prompt_started_hook(self):
192 def _prompt_started_hook(self):
187 """ Called immediately after a new prompt is displayed.
193 """ Called immediately after a new prompt is displayed.
General Comments 0
You need to be logged in to leave comments. Login now