Merge pull request #2870 from PySimpleGUI/Dev-latest
Added Window.set_title
This commit is contained in:
commit
5dc69278e3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue