мета-данные страницы
Загрузка не удалась. Возможно, проблемы с правами доступа?
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версия | Следующая версияСледующая версия справа и слева | ||
python:week15 [16/03/2018 11:32] – [Овал] ybezrukov | python:week15 [16/03/2018 11:37] – [Сегмент] ybezrukov | ||
---|---|---|---|
Строка 125: | Строка 125: | ||
class Arc(Oval): | class Arc(Oval): | ||
| | ||
- | def __init__(self, | + | def __init__(self, |
self.extent = extent | self.extent = extent | ||
+ | self.start = start | ||
super().__init__(p1, | super().__init__(p1, | ||
Строка 133: | Строка 134: | ||
def clone(self): | def clone(self): | ||
- | other = Arc(self.p1, | + | other = Arc(self.p1, |
other.config = self.config.copy() | other.config = self.config.copy() | ||
return other | return other | ||
Строка 144: | Строка 145: | ||
options[' | options[' | ||
options[' | options[' | ||
+ | options[' | ||
return canvas.create_arc(x1, | return canvas.create_arc(x1, | ||
</ | </ | ||
Строка 150: | Строка 152: | ||
<code python> | <code python> | ||
- | arc = Arc(Point(50, | + | arc = Arc(Point(50, |
- | arc.setFill(" | + | arc.setFill(" |
arc.draw(win) | arc.draw(win) | ||
</ | </ |