Show More
@@ -172,11 +172,12 b' class ConsoleWidget(editwindow.EditWindow):' | |||
|
172 | 172 | |
|
173 | 173 | self.GotoPos(self.GetLength()) |
|
174 | 174 | if refresh: |
|
175 | # Maybe this is faster than wx.Yield() | |
|
176 | self.ProcessEvent(wx.PaintEvent()) | |
|
177 | 175 | current_time = time.time() |
|
178 | 176 | if current_time - self._last_refresh_time > 0.03: |
|
179 | wx.Yield() | |
|
177 | # Maybe this is faster than wx.Yield(), this is certainly | |
|
178 | # more robust under windows, as it avoids recursive | |
|
179 | # Yields. | |
|
180 | self.ProcessEvent(wx.PaintEvent()) | |
|
180 | 181 | self._last_refresh_time = current_time |
|
181 | 182 | |
|
182 | 183 |
General Comments 0
You need to be logged in to leave comments.
Login now