Merge pull request #2870 from PySimpleGUI/Dev-latest

Added Window.set_title
This commit is contained in:
PySimpleGUI 2020-05-08 05:16:26 -04:00 committed by GitHub
commit 5dc69278e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

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