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

Method erase

PySimpleGUI/PySimpleGUI.py:6589–6601  ·  view source on GitHub ↗

Erase the Graph - Removes all figures previously "drawn" using the Graph methods (e.g. DrawText)

(self)

Source from the content-addressed store, hash-verified

6587 return id
6588
6589 def erase(self):
6590 """
6591 Erase the Graph - Removes all figures previously "drawn" using the Graph methods (e.g. DrawText)
6592 """
6593 if self._TKCanvas2 is None:
6594 print('*** WARNING - The Graph element has not been finalized and cannot be drawn upon ***')
6595 print('Call Window.Finalize() prior to this operation')
6596 return None
6597 self.Images = {}
6598 try: # in case window was closed with X
6599 self._TKCanvas2.delete('all')
6600 except:
6601 pass
6602
6603 def delete_figure(self, id):
6604 """

Callers 12

mainFunction · 0.95
Demo_Bar_Chart.pyFile · 0.80
update_meterFunction · 0.80
VU_METER_updateFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
SetLEDFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected