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

Method write

PySimpleGUI/PySimpleGUI.py:4035–4048  ·  view source on GitHub ↗

Called by Python (not tkinter?) when stdout or stderr wants to write :param txt: text of output :type txt: (str)

(self, txt)

Source from the content-addressed store, hash-verified

4033 Window._restore_stderr()
4034
4035 def write(self, txt):
4036 """
4037 Called by Python (not tkinter?) when stdout or stderr wants to write
4038
4039 :param txt: text of output
4040 :type txt: (str)
4041 """
4042 self.update(txt, append=True)
4043 # if need to echo, then send the same text to the saved stdout and stderr
4044 if self.echo_stdout_stderr:
4045 if Window._original_stdout is not None:
4046 Window._original_stdout.write(txt)
4047 elif Window._original_stderr is not None:
4048 Window._original_stderr.write(txt)
4049
4050 def flush(self):
4051 """

Callers 7

show_package_versionFunction · 0.80
mainFunction · 0.80
notify_popoutFunction · 0.80
saveMethod · 0.80
__get_ver_pre_38Function · 0.80
__get_ver_38_laterFunction · 0.80
__show_package_versionFunction · 0.80

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected