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