Fixed named arguments

This commit is contained in:
Miodrag Milanovic 2020-07-24 10:59:11 +02:00
parent 770bb40eb3
commit 598ef014e6

View File

@ -114,10 +114,9 @@ PYBIND11_MODULE(MODULE_NAME, m)
.export_values(); .export_values();
py::class_<GraphicElement>(m, "GraphicElement") py::class_<GraphicElement>(m, "GraphicElement")
.def(py::init<GraphicElement::type_t, GraphicElement::style_t, float, float, float, float, float>( .def(py::init<GraphicElement::type_t, GraphicElement::style_t, float, float, float, float, float>(),
//FIXME py::arg("type"), py::arg("style"), py::arg("x1"), py::arg("y1"), py::arg("x2"), py::arg("y2"), py::arg("z")
//(args("type"), "style", "x1", "y1", "x2", "y2", "z") )
))
.def_readwrite("type", &GraphicElement::type) .def_readwrite("type", &GraphicElement::type)
.def_readwrite("x1", &GraphicElement::x1) .def_readwrite("x1", &GraphicElement::x1)
.def_readwrite("y1", &GraphicElement::y1) .def_readwrite("y1", &GraphicElement::y1)