MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / reroute_stdout_to_here

Method reroute_stdout_to_here

PySimpleGUI/PySimpleGUI.py:4004–4012  ·  view source on GitHub ↗

Sends stdout (prints) to this element

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 1

PackFormIntoFrameFunction · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected