From 1f0344824c98881a9848d7afd343c6abdc3ff71c Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Fri, 8 May 2020 05:16:06 -0400 Subject: [PATCH] Added Window.set_title --- PySimpleGUI.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 82721e56..8cf17231 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.19.0 Released 5-May-2020" +version = __version__ = "4.19.0.1 Unreleased - Window.set_title added" port = 'PySimpleGUI' @@ -7809,6 +7809,17 @@ class Window: """ return + + def set_title(self, title): + """ + Change the title of the window + + :param title: The string to set the title to + :type title: str + """ + + self.TKroot.wm_title(str(title)) + # def __enter__(self): # """ # WAS used with context managers which are no longer needed nor advised. It is here for legacy support and