MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / load_from_disk

Method load_from_disk

PySimpleGUI/PySimpleGUI.py:11201–11212  ·  view source on GitHub ↗

Restore values from a previous call to SaveToDisk which saves the returned values dictionary in Pickle format :param filename: Pickle Filename to load :type filename: (str)

(self, filename)

Source from the content-addressed store, hash-verified

11199 print('*** Error saving Window contents to disk ***')
11200
11201 def load_from_disk(self, filename):
11202 """
11203 Restore values from a previous call to SaveToDisk which saves the returned values dictionary in Pickle format
11204
11205 :param filename: Pickle Filename to load
11206 :type filename: (str)
11207 """
11208 try:
11209 with open(filename, 'rb') as df:
11210 self.Fill(pickle.load(df))
11211 except:
11212 print('*** Error loading form to disk ***')
11213
11214 def get_screen_dimensions(self):
11215 """

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected