MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / set_title

Method set_title

PySimpleGUI/PySimpleGUI.py:12106–12121  ·  view source on GitHub ↗

Change the title of the window :param title: The string to set the title to :type title: (str)

(self, title)

Source from the content-addressed store, hash-verified

12104 self.DebuggerEnabled = False
12105
12106 def set_title(self, title):
12107 """
12108 Change the title of the window
12109
12110 :param title: The string to set the title to
12111 :type title: (str)
12112 """
12113 if not self._is_window_created('tried Window.set_title'):
12114 return
12115 if self._has_custom_titlebar:
12116 try: # just in case something goes badly, don't crash
12117 self.find_element(TITLEBAR_TEXT_KEY).update(title)
12118 except:
12119 pass
12120 # even with custom titlebar, set the main window's title too so it'll match when minimized
12121 self.TKroot.wm_title(str(title))
12122
12123 def make_modal(self):
12124 """

Callers 15

set_chart_labelsFunction · 0.80
PyplotHistogramFunction · 0.80
PyplotArtistBoxPlotsFunction · 0.80
ArtistBoxplot2Function · 0.80
PyplotLinePolyCollectionFunction · 0.80
PyplotBoxPlotFunction · 0.80
PyplotRadarChartFunction · 0.80
ExploringNormalizationsFunction · 0.80
UnicodeMinusFunction · 0.80
PyplotHistogramFunction · 0.80
PyplotArtistBoxPlotsFunction · 0.80
ArtistBoxplot2Function · 0.80

Calls 3

_is_window_createdMethod · 0.95
find_elementMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected