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

Method move

DemoPrograms/Demo_Desktop_Widget_CPU_Gauge.py:197–206  ·  view source on GitHub ↗

Move ticks by delta x and delta y

(self, delta_x, delta_y)

Source from the content-addressed store, hash-verified

195 (stop_x, stop_y), color=line_color, width=line_width))
196
197 def move(self, delta_x, delta_y):
198 """
199 Move ticks by delta x and delta y
200 """
201 if False in Gauge.mapping(isinstance, [delta_x, delta_y], (int, float)):
202 raise ValueError
203 self.all[0] += delta_x
204 self.all[1] += delta_y
205 for figure in self.figure:
206 self.graph_elem.MoveFigure(figure, delta_x, delta_y)
207
208 """
209 Create Gauge

Callers

nothing calls this directly

Calls 1

mappingMethod · 0.45

Tested by

no test coverage detected