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

Method __init__

DemoPrograms/Demo_Desktop_Widget_RAM_Gauge.py:169–183  ·  view source on GitHub ↗
(self, center_x=0, center_y=0, start_radius=90, stop_radius=100,
                     start_angle=0, stop_angle=360, step=6, line_color='black', line_width=2, graph_elem=None)

Source from the content-addressed store, hash-verified

167 """
168
169 def __init__(self, center_x=0, center_y=0, start_radius=90, stop_radius=100,
170 start_angle=0, stop_angle=360, step=6, line_color='black', line_width=2, graph_elem=None):
171
172 instance = Gauge.mapping(isinstance, [center_x, center_y, start_radius,
173 stop_radius, start_angle, stop_angle, step, line_width],
174 (int, float)) + [Gauge.mapping(isinstance, line_color, (list, str))]
175 if False in instance:
176 raise ValueError
177 start_angle, stop_angle = Gauge.limit(start_angle), Gauge.limit(stop_angle)
178 self.all = [center_x, center_y, start_radius, stop_radius,
179 start_angle, stop_angle, step, line_color, line_width]
180 self.figure = []
181 self.graph_elem = graph_elem
182
183 self.new()
184
185 def new(self):
186 """

Callers

nothing calls this directly

Calls 3

newMethod · 0.95
mappingMethod · 0.45
limitMethod · 0.45

Tested by

no test coverage detected