Commit e82f38bc authored by David Gobbi's avatar David Gobbi

Remove bytes() overload resolution trick

The old code used b"text" to cause the wrappers to prefer the
vtkStdString overload over the vtkUnicodeString overload (without
this, the wrappers reported an error due to an ambiguous method
call under Python 3).

The wrappers have been fixed so that a normal Python string can
be used here.
parent 3e6f6d72
......@@ -44,7 +44,7 @@ class CustomPythonItem(object):
textProp.SetColor(0.5, 0.0, 1.0)
textProp.SetOrientation(45)
context2D.ApplyTextProp(textProp)
context2D.DrawString(0.35, 0.4, b"Context2D!")
context2D.DrawString(0.35, 0.4, "Context2D!")
pen.SetColor([200, 200, 30])
brush.SetColor([200, 200, 30])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment