MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / delete_figure

Method delete_figure

PySimpleGUI/PySimpleGUI.py:6603–6617  ·  view source on GitHub ↗

Remove from the Graph the figure represented by id. The id is given to you anytime you call a drawing primitive :param id: the id returned to you when calling one of the drawing methods :type id: (int)

(self, id)

Source from the content-addressed store, hash-verified

6601 pass
6602
6603 def delete_figure(self, id):
6604 """
6605 Remove from the Graph the figure represented by id. The id is given to you anytime you call a drawing primitive
6606
6607 :param id: the id returned to you when calling one of the drawing methods
6608 :type id: (int)
6609 """
6610 try:
6611 self._TKCanvas2.delete(id)
6612 except:
6613 print('DeleteFigure - bad ID {}'.format(id))
6614 try:
6615 del self.Images[id] # in case was an image. If wasn't an image, then will get exception
6616 except:
6617 pass
6618
6619 def update(self, background_color=None, visible=None):
6620 """

Callers 14

mainFunction · 0.95
mainFunction · 0.95
update_player1_scoreMethod · 0.80
update_player2_scoreMethod · 0.80
mainFunction · 0.80
graph_percentage_absMethod · 0.80
graph_valueMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected