Show More
@@ -172,7 +172,7 b' class ConsoleWidget(QtGui.QWidget):' | |||||
172 | ------- |
|
172 | ------- | |
173 | RuntimeError |
|
173 | RuntimeError | |
174 | If incomplete input is given and 'hidden' is True. In this case, |
|
174 | If incomplete input is given and 'hidden' is True. In this case, | |
175 | it not possible to prompt for more input. |
|
175 | it is not possible to prompt for more input. | |
176 |
|
176 | |||
177 | Returns: |
|
177 | Returns: | |
178 | -------- |
|
178 | -------- |
@@ -65,7 +65,8 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):' | |||||
65 | """ A Qt frontend for a generic Python kernel. |
|
65 | """ A Qt frontend for a generic Python kernel. | |
66 | """ |
|
66 | """ | |
67 |
|
67 | |||
68 |
# Emitted when an 'execute_reply' |
|
68 | # Emitted when an 'execute_reply' has been received from the kernel and | |
|
69 | # processed by the FrontendWidget. | |||
69 | executed = QtCore.pyqtSignal(object) |
|
70 | executed = QtCore.pyqtSignal(object) | |
70 |
|
71 | |||
71 | #--------------------------------------------------------------------------- |
|
72 | #--------------------------------------------------------------------------- | |
@@ -184,6 +185,9 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):' | |||||
184 | def _handle_input_request(self, msg): |
|
185 | def _handle_input_request(self, msg): | |
185 | """ Handle requests for raw_input. |
|
186 | """ Handle requests for raw_input. | |
186 | """ |
|
187 | """ | |
|
188 | if self._hidden: | |||
|
189 | raise RuntimeError('Request for raw input during hidden execution.') | |||
|
190 | ||||
187 | # Make sure that all output from the SUB channel has been processed |
|
191 | # Make sure that all output from the SUB channel has been processed | |
188 | # before entering readline mode. |
|
192 | # before entering readline mode. | |
189 | self.kernel_manager.sub_channel.flush() |
|
193 | self.kernel_manager.sub_channel.flush() |
General Comments 0
You need to be logged in to leave comments.
Login now