diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-07-24 10:59:11 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-07-24 10:59:11 +0200 |
commit | 598ef014e686a1c03821b6728782dbf98f8ff038 (patch) | |
tree | 7db0ecfd1b16d56dd65164eaa27a3e074df75849 | |
parent | 770bb40eb3dc2f5b8581dad1d750463b7a6963e7 (diff) | |
download | nextpnr-598ef014e686a1c03821b6728782dbf98f8ff038.tar.gz nextpnr-598ef014e686a1c03821b6728782dbf98f8ff038.tar.bz2 nextpnr-598ef014e686a1c03821b6728782dbf98f8ff038.zip |
Fixed named arguments
-rw-r--r-- | common/pybindings.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc index e1a7d313..3f288e78 100644 --- a/common/pybindings.cc +++ b/common/pybindings.cc @@ -114,10 +114,9 @@ PYBIND11_MODULE(MODULE_NAME, m) .export_values(); py::class_<GraphicElement>(m, "GraphicElement") - .def(py::init<GraphicElement::type_t, GraphicElement::style_t, float, float, float, float, float>( - //FIXME - //(args("type"), "style", "x1", "y1", "x2", "y2", "z") - )) + .def(py::init<GraphicElement::type_t, GraphicElement::style_t, float, float, float, float, float>(), + py::arg("type"), py::arg("style"), py::arg("x1"), py::arg("y1"), py::arg("x2"), py::arg("y2"), py::arg("z") + ) .def_readwrite("type", &GraphicElement::type) .def_readwrite("x1", &GraphicElement::x1) .def_readwrite("y1", &GraphicElement::y1) |