MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / refresh

Method refresh

PySimpleGUI/PySimpleGUI.py:10882–10899  ·  view source on GitHub ↗

Refreshes the window by calling tkroot.update(). Can sometimes get away with a refresh instead of a Read. Use this call when you want something to appear in your Window immediately (as soon as this function is called). If you change an element in a window, your change will

(self)

Source from the content-addressed store, hash-verified

10880 return self
10881
10882 def refresh(self):
10883 """
10884 Refreshes the window by calling tkroot.update(). Can sometimes get away with a refresh instead of a Read.
10885 Use this call when you want something to appear in your Window immediately (as soon as this function is called).
10886 If you change an element in a window, your change will not be visible until the next call to Window.read
10887 or a call to Window.refresh()
10888
10889 :return: `self` so that method calls can be easily "chained"
10890 :rtype: (Window)
10891 """
10892
10893 if self.TKrootDestroyed:
10894 return self
10895 try:
10896 rc = self.TKroot.update()
10897 except:
10898 pass
10899 return self
10900
10901 def fill(self, values_dict):
10902 """

Callers 15

Launcher2Function · 0.95
DownloadSubtitlesGUIFunction · 0.95
mainFunction · 0.95
guiFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
old_mainFunction · 0.95
mainFunction · 0.95
visibility_changedMethod · 0.95
find_in_fileFunction · 0.80
mainFunction · 0.80

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected