Esempio n. 1
0
    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'])
Esempio n. 2
0
 def render(self):
     rendering.paint_pix(self.id, self._imgs[self.frame.state],
                         self._fwidth, self._fheight)
Esempio n. 3
0
 def render(self):
     rendering.paint_pix(self.id, self._imgs[self.frame.state],
                         self.pos['width'], self.pos['height'])
Esempio n. 4
0
    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)
Esempio n. 5
0
    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)
Esempio n. 6
0
 def render_active(self):
     rendering.paint_pix(self.id, self.active, self.width, self.height)