Use Python class staticmethod syntax to access C++ static member functions, such as Klass.memberfunction, instead of Klass_memberfunction. Examples and test-suite changes in preparation for issue #2137.
11 lines
223 B
Python
11 lines
223 B
Python
from li_factory import *
|
|
|
|
circle = Geometry.create(Geometry.CIRCLE)
|
|
r = circle.radius()
|
|
if (r != 1.5):
|
|
raise RuntimeError
|
|
|
|
point = Geometry.create(Geometry.POINT)
|
|
w = point.width()
|
|
if (w != 1.0):
|
|
raise RuntimeError
|