Sends stdout (prints) to this element
(self)
| 4002 | autoscroll=autoscroll, font=font, image=image, image_subsample=image_subsample) |
| 4003 | |
| 4004 | def reroute_stdout_to_here(self): |
| 4005 | """ |
| 4006 | Sends stdout (prints) to this element |
| 4007 | """ |
| 4008 | # if nothing on the stack, then need to save the very first stdout |
| 4009 | if len(Window._rerouted_stdout_stack) == 0: |
| 4010 | Window._original_stdout = sys.stdout |
| 4011 | Window._rerouted_stdout_stack.insert(0, (self.ParentForm, self)) |
| 4012 | sys.stdout = self |
| 4013 | |
| 4014 | def reroute_stderr_to_here(self): |
| 4015 | """ |
no test coverage detected