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

Method move

DemoPrograms/Demo_Desktop_Widget_RAM_Gauge.py:99–108  ·  view source on GitHub ↗

Move circle or arc in clock by delta x, delta y

(self, delta_x, delta_y)

Source from the content-addressed store, hash-verified

97 self.figure.append(self.graph_elem.DrawArc((x - r, y + r), (x + r, y - r), stop - start, start, style='arc', arc_color=fill))
98
99 def move(self, delta_x, delta_y):
100 """
101 Move circle or arc in clock by delta x, delta y
102 """
103 if False in Gauge.mapping(isinstance, [delta_x, delta_y], (int, float)):
104 raise ValueError
105 self.all[0] += delta_x
106 self.all[1] += delta_y
107 for figure in self.figure:
108 self.graph_elem.MoveFigure(figure, delta_x, delta_y)
109
110 class Pointer():
111 """

Callers

nothing calls this directly

Calls 1

mappingMethod · 0.45

Tested by

no test coverage detected