197 |
|
|
198 |
fill -- a Color object. |
fill -- a Color object. |
199 |
""" |
""" |
|
assert isinstance(fill, Color) |
|
200 |
self.GetDefaultGroup().GetProperties().SetFill(fill) |
self.GetDefaultGroup().GetProperties().SetFill(fill) |
201 |
self.__SendNotification() |
self.__SendNotification() |
202 |
|
|
209 |
|
|
210 |
color -- a Color object. |
color -- a Color object. |
211 |
""" |
""" |
|
assert isinstance(color, Color) |
|
212 |
self.GetDefaultGroup().GetProperties().SetLineColor(color) |
self.GetDefaultGroup().GetProperties().SetLineColor(color) |
213 |
self.__SendNotification() |
self.__SendNotification() |
214 |
|
|
456 |
color -- the color of the line. This must be a Color object. |
color -- the color of the line. This must be a Color object. |
457 |
""" |
""" |
458 |
|
|
|
assert isinstance(color, Color) |
|
459 |
self.__stroke = color |
self.__stroke = color |
460 |
|
|
461 |
def GetLineWidth(self): |
def GetLineWidth(self): |
483 |
fill -- the color of the fill. This must be a Color object. |
fill -- the color of the fill. This must be a Color object. |
484 |
""" |
""" |
485 |
|
|
|
assert isinstance(fill, Color) |
|
486 |
self.__fill = fill |
self.__fill = fill |
487 |
|
|
488 |
def __eq__(self, other): |
def __eq__(self, other): |
759 |
if max is None: |
if max is None: |
760 |
raise ValueError() |
raise ValueError() |
761 |
|
|
762 |
self.__range = Range("[" + repr(float(min)) + ";" + |
self.__range = Range(("[", min, max, "[")) |
|
repr(float(max)) + "[") |
|
763 |
|
|
764 |
def GetRange(self): |
def GetRange(self): |
765 |
"""Return the range as a string""" |
"""Return the range as a string""" |