Example #1
0
    def _repr_pretty_(self, p, cycle):
        if cycle:
            p.text(repr(self))
        else:
            p.begin_group(2, 'GlobalMaskInfo(')
            p.begin_group(0)

            p.break_()
            p.text("overlay_color = %s," % repr(self.overlay_color))
            p.break_()
            p.text("opacity = %s," % self.opacity)
            p.break_()
            p.text("color_kind = %s" % ColorKind.name_of(self.color_kind))

            p.end_group(2)
            p.break_()
            p.end_group(0, ')')
Example #2
0
 def __repr__(self):
     return "GlobalMaskInfo(overlay_color=%s, opacity=%s, color_kind=%r %s)" % (
         repr(self.overlay_color), self.opacity,
         self.color_kind, ColorKind.name_of(self.color_kind)
     )
Example #3
0
 def __repr__(self):
     return "DisplayInfo(color=%s, opacity=%s, color_kind=%r %s)" % (
         repr(self.color), self.opacity,
         self.color_kind, ColorKind.name_of(self.color_kind)
     )