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()
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()