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

Method __init__

DemoPrograms/Demo_Desktop_Widget_CPU_Gauge.py:64–77  ·  view source on GitHub ↗
(self, center_x=0, center_y=0, radius=100, start_angle=0,
                     stop_angle=360, fill_color='white', line_color='black', line_width=2, graph_elem=None)

Source from the content-addressed store, hash-verified

62 """
63
64 def __init__(self, center_x=0, center_y=0, radius=100, start_angle=0,
65 stop_angle=360, fill_color='white', line_color='black', line_width=2, graph_elem=None):
66
67 instance = Gauge.mapping(isinstance, [center_x, center_y, radius, start_angle,
68 stop_angle, line_width], (int, float)) + Gauge.mapping(isinstance,
69 [fill_color, line_color], str)
70 if False in instance:
71 raise ValueError
72 start_angle, stop_angle = Gauge.limit(start_angle), Gauge.limit(stop_angle)
73 self.all = [center_x, center_y, radius, start_angle, stop_angle,
74 fill_color, line_color, line_width]
75 self.figure = []
76 self.graph_elem = graph_elem
77 self.new()
78
79 def new(self):
80 """

Callers

nothing calls this directly

Calls 3

newMethod · 0.95
mappingMethod · 0.45
limitMethod · 0.45

Tested by

no test coverage detected