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

Method get_figures_at_location

PySimpleGUI/PySimpleGUI.py:6730–6741  ·  view source on GitHub ↗

Returns a list of figures located at a particular x,y location within the Graph :param location: point to check :type location: (int, int) | Tuple[float, float] :return: a list of previously drawn "Figures" (returned from the drawing primitives) :rt

(self, location)

Source from the content-addressed store, hash-verified

6728 self.TKCanvas.tag_raise(figure) # move figure to the "top" of all other figures
6729
6730 def get_figures_at_location(self, location):
6731 """
6732 Returns a list of figures located at a particular x,y location within the Graph
6733
6734 :param location: point to check
6735 :type location: (int, int) | Tuple[float, float]
6736 :return: a list of previously drawn "Figures" (returned from the drawing primitives)
6737 :rtype: List[int]
6738 """
6739 x, y = self._convert_xy_to_canvas_xy(location[0], location[1])
6740 ids = self.TKCanvas.find_overlapping(x, y, x, y)
6741 return ids
6742
6743 def get_bounding_box(self, figure):
6744 """

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls 1

Tested by

no test coverage detected