def render(self): imgs = self._imgs[self.frame.state] img = imgs['normal'] if 'click' in self._secondary: img = imgs['click'] elif 'hover' in self._secondary: img = imgs['hover'] rendering.paint_pix(self.id, img, self.pos['width'], self.pos['height'])
def render(self): rendering.paint_pix(self.id, self._imgs[self.frame.state], self._fwidth, self._fheight)
def render(self): rendering.paint_pix(self.id, self._imgs[self.frame.state], self.pos['width'], self.pos['height'])
def render(self): assert self._img_w is not None and self._img_h is not None rendering.paint_pix(self.id, self._imgs[self.frame.state], self._img_w, self._img_h)
def render_active(self): rendering.paint_pix(self.id, self.active, self.width, self.height)