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

Method move

DemoPrograms/Demo_Desktop_Widget_RAM_Gauge.py:200–209  ·  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

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

Callers

nothing calls this directly

Calls 1

mappingMethod · 0.45

Tested by

no test coverage detected