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

Method move

DemoPrograms/Demo_Desktop_Widget_CPU_Gauge.py:149–157  ·  view source on GitHub ↗

Move pointer with delta x and delta y

(self, delta_x, delta_y)

Source from the content-addressed store, hash-verified

147 fill_color=origin_color, line_color=outer_color, line_width=line_width))
148
149 def move(self, delta_x, delta_y):
150 """
151 Move pointer with delta x and delta y
152 """
153 if False in Gauge.mapping(isinstance, [delta_x, delta_y], (int, float)):
154 raise ValueError
155 self.all[:2] = [self.all[0] + delta_x, self.all[1] + delta_y]
156 for figure in self.figure:
157 self.graph_elem.MoveFigure(figure, delta_x, delta_y)
158
159 class Tick():
160 """

Callers

nothing calls this directly

Calls 1

mappingMethod · 0.45

Tested by

no test coverage detected