示例#1
0
文件: video.py 项目: azoon/pymt
 def draw(self):
     b = self.bordersize
     b2 = b * 2
     pymt.set_color(*self.style['bg-color'])
     pymt.drawCSSRectangle((-b, -b), (self.width + b2, self.height + b2),
                           style=self.style)
     super(MTVideo, self).draw()
示例#2
0
文件: video.py 项目: azoon/pymt
 def draw(self):
     pymt.set_color(*self.style['bg-color'])
     pymt.drawCSSRectangle(pos=self.pos, size=self.size, style=self.style)
     self.image.color = self.style['color']
     super(MTButtonVideo, self).draw()