##// END OF EJS Templates
Added a sleep as suggested by gael, so will not eat all cpu on raw_input ...
laurent.dufrechou@gmail.com -
Show More
@@ -33,6 +33,8 b' from StringIO import StringIO'
33 33 import sys
34 34 import codecs
35 35 import locale
36 import time
37
36 38 for enc in (locale.getpreferredencoding(),
37 39 sys.getfilesystemencoding(),
38 40 sys.getdefaultencoding()):
@@ -77,6 +79,7 b' class WxNonBlockingIPShell(NonBlockingIPShell):'
77 79 wx.CallAfter(self._yesNoBox, prompt)
78 80 while self.answer is None:
79 81 wx.Yield()
82 time.sleep(.1)
80 83 return self.answer
81 84
82 85 def _yesNoBox(self, prompt):
General Comments 0
You need to be logged in to leave comments. Login now