| 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 | """ |