MCPcopy Create free account
hub / github.com/vispy/vispy / __init__

Method __init__

vispy/visuals/shaders/expression.py:20–24  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

18 """Plain GLSL text to insert inline"""
19
20 def __init__(self, text):
21 super(TextExpression, self).__init__()
22 if not isinstance(text, str):
23 raise TypeError("Argument must be string.")
24 self._text = text
25
26 def __repr__(self):
27 return '<TextExpression %r for at 0x%x>' % (self.text, id(self))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected