##// END OF EJS Templates
Make help() more robust.
gvaroquaux -
Show More
@@ -108,6 +108,8 b' class WxController(ConsoleWidget, PrefilterFrontEnd):'
108 #
108 #
109 # 'readline' for readline-like behavior with a prompt
109 # 'readline' for readline-like behavior with a prompt
110 # and an edit buffer.
110 # and an edit buffer.
111 # 'raw_input' similar to readline, but triggered by a raw-input
112 # call. Can be used by subclasses to act differently.
111 # 'subprocess' for sending the raw input directly to a
113 # 'subprocess' for sending the raw input directly to a
112 # subprocess.
114 # subprocess.
113 # 'buffering' for buffering of the input, that will be used
115 # 'buffering' for buffering of the input, that will be used
@@ -164,6 +166,7 b' class WxController(ConsoleWidget, PrefilterFrontEnd):'
164 """ A replacement from python's raw_input.
166 """ A replacement from python's raw_input.
165 """
167 """
166 self.new_prompt(prompt)
168 self.new_prompt(prompt)
169 self._input_state = 'raw_input'
167 self.waiting = True
170 self.waiting = True
168 self.__old_on_enter = self._on_enter
171 self.__old_on_enter = self._on_enter
169 def my_on_enter():
172 def my_on_enter():
@@ -449,7 +452,7 b' class WxController(ConsoleWidget, PrefilterFrontEnd):'
449 def _colorize_input_buffer(self):
452 def _colorize_input_buffer(self):
450 """ Keep the input buffer lines at a bright color.
453 """ Keep the input buffer lines at a bright color.
451 """
454 """
452 if not self._input_state == 'readline':
455 if not self._input_state in ('readline', 'raw_input'):
453 return
456 return
454 end_line = self.GetCurrentLine()
457 end_line = self.GetCurrentLine()
455 if not sys.platform == 'win32':
458 if not sys.platform == 'win32':
General Comments 0
You need to be logged in to leave comments. Login now