Change the title of the window :param title: The string to set the title to :type title: (str)
(self, title)
| 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 | """ |
no test coverage detected