How to use the pyno.element.Element.render_base function in pyno

To help you get started, we’ve selected a few pyno examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github honix / Pyno / pyno / sub.py View on Github external
def render_base(self):
        if Element.render_base(self):
            self.label.x, self.label.y = self.x, self.y
github honix / Pyno / pyno / node.py View on Github external
def render_base(self):
        if Element.render_base(self):
            self.label.x, self.label.y = self.x, self.y
github honix / Pyno / pyno / field.py View on Github external
def render_base(self):
        if Element.render_base(self):
            self.style()

            if self.is_number:
                if not self.graphics['scroll']:
                    self.graphics['scroll'] = Quad(self.batch, frontdrop=True)

                self.graphics['scroll'].redraw(self.x - self.cw + 10,
                                            self.y, 10, self.ch,
                                            (172, 150, 83))

            elif self.graphics['scroll']:
                self.graphics['scroll'].delete()
                self.graphics['scroll'] = None

            if self.hover:
                if not self.graphics['corner']: