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

Method __init__

DemoPrograms/Demo_Desktop_Widget_CPU_Gauge.py:165–179  ·  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

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

Callers

nothing calls this directly

Calls 3

newMethod · 0.95
mappingMethod · 0.45
limitMethod · 0.45

Tested by

no test coverage detected