Show More
@@ -76,10 +76,12 b' class WxNonBlockingIPShell(NonBlockingIPShell):' | |||||
76 | """ A replacement from python's raw_input. |
|
76 | """ A replacement from python's raw_input. | |
77 | """ |
|
77 | """ | |
78 | self.answer = None |
|
78 | self.answer = None | |
|
79 | if(self._threading == True): | |||
79 |
|
|
80 | wx.CallAfter(self._yesNoBox, prompt) | |
80 |
|
|
81 | while self.answer is None: | |
81 | wx.Yield() |
|
|||
82 |
|
|
82 | time.sleep(.1) | |
|
83 | else: | |||
|
84 | self._yesNoBox(prompt) | |||
83 | return self.answer |
|
85 | return self.answer | |
84 |
|
86 | |||
85 | def _yesNoBox(self, prompt): |
|
87 | def _yesNoBox(self, prompt): | |
@@ -655,6 +657,8 b' class IPShellWidget(wx.Panel):' | |||||
655 | lines_to_execute = lines_to_execute.replace('\r','') |
|
657 | lines_to_execute = lines_to_execute.replace('\r','') | |
656 | self.IP.do_execute(lines_to_execute.encode(ENCODING)) |
|
658 | self.IP.do_execute(lines_to_execute.encode(ENCODING)) | |
657 | self.updateHistoryTracker(lines) |
|
659 | self.updateHistoryTracker(lines) | |
|
660 | if(self.text_ctrl.getCursorPos()!=0): | |||
|
661 | self.text_ctrl.removeCurrentLine() | |||
658 | self.setCurrentState('WAIT_END_OF_EXECUTION') |
|
662 | self.setCurrentState('WAIT_END_OF_EXECUTION') | |
659 |
|
663 | |||
660 | def evtStateExecuteDone(self,evt): |
|
664 | def evtStateExecuteDone(self,evt): |
General Comments 0
You need to be logged in to leave comments.
Login now