diff options
Diffstat (limited to 'gr-qtgui/python/qtgui/bindings/time_sink_c_python.cc')
-rw-r--r-- | gr-qtgui/python/qtgui/bindings/time_sink_c_python.cc | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/gr-qtgui/python/qtgui/bindings/time_sink_c_python.cc b/gr-qtgui/python/qtgui/bindings/time_sink_c_python.cc index f28614f920..41bec62115 100644 --- a/gr-qtgui/python/qtgui/bindings/time_sink_c_python.cc +++ b/gr-qtgui/python/qtgui/bindings/time_sink_c_python.cc @@ -60,20 +60,11 @@ void bind_time_sink_c(py::module& m) .def("exec_", &time_sink_c::exec_, D(time_sink_c, exec_)) - .def("qwidget", &time_sink_c::qwidget, D(time_sink_c, qwidget)) - - - // .def("pyqwidget",&time_sink_c::pyqwidget, - // D(time_sink_c,pyqwidget) - // ) - // For the sip conversion to python to work, the widget object - // needs to be explicitly converted to long long. .def( - "pyqwidget", - [](std::shared_ptr<time_sink_c> p) { - return PyLong_AsLongLong(p->pyqwidget()); - }, - D(time_sink_c, pyqwidget)) + "qwidget", + [](time_sink_c& self) { return reinterpret_cast<uintptr_t>(self.qwidget()); }, + D(time_sink_c, qwidget)) + .def("set_y_axis", &time_sink_c::set_y_axis, |