##// END OF EJS Templates
Setting hidden=True for FrontWidget's 'execute_source' works again.
epatters -
Show More
@@ -63,6 +63,7 b' class FrontendWidget(HistoryConsoleWidget):'
63 self._call_tip_widget = CallTipWidget(self)
63 self._call_tip_widget = CallTipWidget(self)
64 self._compile = CommandCompiler()
64 self._compile = CommandCompiler()
65 self._completion_lexer = CompletionLexer(PythonLexer())
65 self._completion_lexer = CompletionLexer(PythonLexer())
66 self._hidden = False
66 self._highlighter = FrontendHighlighter(self)
67 self._highlighter = FrontendHighlighter(self)
67 self._kernel_manager = None
68 self._kernel_manager = None
68
69
@@ -140,6 +141,7 b' class FrontendWidget(HistoryConsoleWidget):'
140 executed = code is not None
141 executed = code is not None
141 if executed:
142 if executed:
142 self.kernel_manager.xreq_channel.execute(source)
143 self.kernel_manager.xreq_channel.execute(source)
144 self._hidden = hidden
143 else:
145 else:
144 space = 0
146 space = 0
145 for char in lines[-1]:
147 for char in lines[-1]:
@@ -254,9 +256,10 b' class FrontendWidget(HistoryConsoleWidget):'
254 self._call_tip()
256 self._call_tip()
255
257
256 def _handle_sub(self, omsg):
258 def _handle_sub(self, omsg):
257 handler = getattr(self, '_handle_%s' % omsg['msg_type'], None)
259 if not self._hidden:
258 if handler is not None:
260 handler = getattr(self, '_handle_%s' % omsg['msg_type'], None)
259 handler(omsg)
261 if handler is not None:
262 handler(omsg)
260
263
261 def _handle_pyout(self, omsg):
264 def _handle_pyout(self, omsg):
262 session = omsg['parent_header']['session']
265 session = omsg['parent_header']['session']
@@ -278,6 +281,7 b' class FrontendWidget(HistoryConsoleWidget):'
278 elif status == 'aborted':
281 elif status == 'aborted':
279 text = "ERROR: ABORTED\n"
282 text = "ERROR: ABORTED\n"
280 self.appendPlainText(text)
283 self.appendPlainText(text)
284 self._hidden = False
281 self._show_prompt('>>> ')
285 self._show_prompt('>>> ')
282 self.executed.emit(rep)
286 self.executed.emit(rep)
283
287
General Comments 0
You need to be logged in to leave comments. Login now