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

Method change_coordinates

PySimpleGUI/PySimpleGUI.py:6757–6768  ·  view source on GitHub ↗

Changes the corrdinate system to a new one. The same 2 points in space are used to define the coorinate system - the bottom left and the top right values of your graph. :param graph_bottom_left: The bottoms left corner of your coordinate system :type graph_bottom_l

(self, graph_bottom_left, graph_top_right)

Source from the content-addressed store, hash-verified

6755 return top_left, bottom_right
6756
6757 def change_coordinates(self, graph_bottom_left, graph_top_right):
6758 """
6759 Changes the corrdinate system to a new one. The same 2 points in space are used to define the coorinate
6760 system - the bottom left and the top right values of your graph.
6761
6762 :param graph_bottom_left: The bottoms left corner of your coordinate system
6763 :type graph_bottom_left: (int, int) (x,y)
6764 :param graph_top_right: The top right corner of your coordinate system
6765 :type graph_top_right: (int, int) (x,y)
6766 """
6767 self.BottomLeft = graph_bottom_left
6768 self.TopRight = graph_top_right
6769
6770 @property
6771 def tk_canvas(self):

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected