summaryrefslogtreecommitdiff
path: root/gr-qtgui/python/qtgui
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-06-03 09:12:49 -0400
committerJosh Morman <mormjb@gmail.com>2020-06-04 11:00:08 -0400
commit47954bbd2ead5dc2fa6df9017caadf0f28ba12c0 (patch)
tree338fec5378fb86a7d81768aa7897a1481d7e5458 /gr-qtgui/python/qtgui
parent31f0a0703eecb4949168bba1be0cb3aea86e1db1 (diff)
qtgui: add pybind bindings for eye_sink
Diffstat (limited to 'gr-qtgui/python/qtgui')
-rw-r--r--gr-qtgui/python/qtgui/bindings/CMakeLists.txt2
-rw-r--r--gr-qtgui/python/qtgui/bindings/docstrings/eye_sink_c_pydoc_template.h138
-rw-r--r--gr-qtgui/python/qtgui/bindings/docstrings/eye_sink_f_pydoc_template.h138
-rw-r--r--gr-qtgui/python/qtgui/bindings/eye_sink_c_python.cc283
-rw-r--r--gr-qtgui/python/qtgui/bindings/eye_sink_f_python.cc280
-rw-r--r--gr-qtgui/python/qtgui/bindings/python_bindings.cc4
-rw-r--r--gr-qtgui/python/qtgui/qa_qtgui.py4
7 files changed, 847 insertions, 2 deletions
diff --git a/gr-qtgui/python/qtgui/bindings/CMakeLists.txt b/gr-qtgui/python/qtgui/bindings/CMakeLists.txt
index 43cf35991a..c5433c3289 100644
--- a/gr-qtgui/python/qtgui/bindings/CMakeLists.txt
+++ b/gr-qtgui/python/qtgui/bindings/CMakeLists.txt
@@ -20,6 +20,8 @@ list(APPEND qtgui_python_files
constellationdisplayform_python.cc
displayform_python.cc
edit_box_msg_python.cc
+ eye_sink_c_python.cc
+ eye_sink_f_python.cc
form_menus_python.cc
freq_sink_c_python.cc
freq_sink_f_python.cc
diff --git a/gr-qtgui/python/qtgui/bindings/docstrings/eye_sink_c_pydoc_template.h b/gr-qtgui/python/qtgui/bindings/docstrings/eye_sink_c_pydoc_template.h
new file mode 100644
index 0000000000..ae461f5548
--- /dev/null
+++ b/gr-qtgui/python/qtgui/bindings/docstrings/eye_sink_c_pydoc_template.h
@@ -0,0 +1,138 @@
+/*
+ * Copyright 2020 Free Software Foundation, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ *
+ */
+#include "pydoc_macros.h"
+#define D(...) DOC(gr, qtgui, __VA_ARGS__)
+/*
+ This file contains placeholders for docstrings for the Python bindings.
+ Do not edit! These were automatically extracted during the binding process
+ and will be overwritten during the build process
+ */
+
+
+static const char* __doc_gr_qtgui_eye_sink_c = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_eye_sink_c_0 = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_eye_sink_c_1 = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_make = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_exec_ = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_qwidget = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_pyqwidget = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_y_axis = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_y_label = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_update_time = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_title = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_line_label = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_line_color = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_line_width = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_line_style = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_line_marker = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_nsamps = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_samp_rate = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_line_alpha = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_trigger_mode = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_title = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_line_label = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_line_color = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_line_width = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_line_style = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_line_marker = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_line_alpha = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_set_size = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_enable_menu = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_enable_grid = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_enable_autoscale = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_enable_stem_plot = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_enable_semilogx = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_enable_semilogy = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_enable_control_panel = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_enable_tags_0 = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_enable_tags_1 = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_enable_axis_labels = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_disable_legend = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_nsamps = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_c_reset = R"doc()doc";
diff --git a/gr-qtgui/python/qtgui/bindings/docstrings/eye_sink_f_pydoc_template.h b/gr-qtgui/python/qtgui/bindings/docstrings/eye_sink_f_pydoc_template.h
new file mode 100644
index 0000000000..4ffa10e909
--- /dev/null
+++ b/gr-qtgui/python/qtgui/bindings/docstrings/eye_sink_f_pydoc_template.h
@@ -0,0 +1,138 @@
+/*
+ * Copyright 2020 Free Software Foundation, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ *
+ */
+#include "pydoc_macros.h"
+#define D(...) DOC(gr, qtgui, __VA_ARGS__)
+/*
+ This file contains placeholders for docstrings for the Python bindings.
+ Do not edit! These were automatically extracted during the binding process
+ and will be overwritten during the build process
+ */
+
+
+static const char* __doc_gr_qtgui_eye_sink_f = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_eye_sink_f_0 = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_eye_sink_f_1 = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_make = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_exec_ = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_qwidget = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_pyqwidget = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_y_axis = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_y_label = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_update_time = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_title = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_line_label = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_line_color = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_line_width = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_line_style = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_line_marker = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_nsamps = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_samp_rate = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_line_alpha = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_trigger_mode = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_title = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_line_label = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_line_color = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_line_width = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_line_style = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_line_marker = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_line_alpha = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_set_size = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_enable_menu = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_enable_grid = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_enable_autoscale = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_enable_stem_plot = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_enable_semilogx = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_enable_semilogy = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_enable_control_panel = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_enable_tags_0 = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_enable_tags_1 = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_enable_axis_labels = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_disable_legend = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_nsamps = R"doc()doc";
+
+
+static const char* __doc_gr_qtgui_eye_sink_f_reset = R"doc()doc";
diff --git a/gr-qtgui/python/qtgui/bindings/eye_sink_c_python.cc b/gr-qtgui/python/qtgui/bindings/eye_sink_c_python.cc
new file mode 100644
index 0000000000..8ca2b4413f
--- /dev/null
+++ b/gr-qtgui/python/qtgui/bindings/eye_sink_c_python.cc
@@ -0,0 +1,283 @@
+/*
+ * Copyright 2020 Free Software Foundation, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ *
+ */
+
+/* This file is automatically generated using bindtool */
+
+#include <pybind11/buffer_info.h>
+#include <pybind11/complex.h>
+#include <pybind11/embed.h>
+#include <pybind11/pybind11.h>
+#include <pybind11/pytypes.h>
+#include <pybind11/stl.h>
+
+namespace py = pybind11;
+
+#include <gnuradio/qtgui/utils.h>
+#include <qwt_legend.h>
+#include <qwt_painter.h>
+#include <qwt_plot.h>
+#include <qwt_plot_canvas.h>
+#include <qwt_plot_curve.h>
+#include <qwt_plot_magnifier.h>
+#include <qwt_plot_marker.h>
+#include <qwt_plot_panner.h>
+#include <qwt_plot_zoomer.h>
+#include <qwt_scale_engine.h>
+#include <qwt_scale_widget.h>
+#include <qwt_symbol.h>
+
+#include <gnuradio/qtgui/eye_sink_c.h>
+// pydoc.h is automatically generated in the build directory
+#include <eye_sink_c_pydoc.h>
+
+void bind_eye_sink_c(py::module& m)
+{
+
+ using eye_sink_c = ::gr::qtgui::eye_sink_c;
+
+
+ py::class_<eye_sink_c,
+ gr::sync_block,
+ gr::block,
+ gr::basic_block,
+ std::shared_ptr<eye_sink_c>>(m, "eye_sink_c", D(eye_sink_c))
+
+ .def(py::init(&eye_sink_c::make),
+ py::arg("size"),
+ py::arg("samp_rate"),
+ py::arg("name"),
+ py::arg("nconnections") = 1,
+ py::arg("parent") = __null,
+ D(eye_sink_c, make))
+
+
+ .def("exec_", &eye_sink_c::exec_, D(eye_sink_c, exec_))
+
+
+ .def("qwidget", &eye_sink_c::qwidget, D(eye_sink_c, qwidget))
+
+
+ // .def("pyqwidget",&eye_sink_c::pyqwidget,
+ // D(eye_sink_c,pyqwidget)
+ // )
+ // For the sip conversion to python to work, the widget object
+ // needs to be explicitly converted to Long
+ .def(
+ "pyqwidget",
+ [](std::shared_ptr<eye_sink_c> p) { return PyLong_AsLong(p->pyqwidget()); },
+ D(eye_sink_c, pyqwidget))
+
+ .def("set_y_axis",
+ &eye_sink_c::set_y_axis,
+ py::arg("min"),
+ py::arg("max"),
+ D(eye_sink_c, set_y_axis))
+
+
+ .def("set_y_label",
+ &eye_sink_c::set_y_label,
+ py::arg("label"),
+ py::arg("unit") = "",
+ D(eye_sink_c, set_y_label))
+
+
+ .def("set_update_time",
+ &eye_sink_c::set_update_time,
+ py::arg("t"),
+ D(eye_sink_c, set_update_time))
+
+
+ .def("set_title",
+ &eye_sink_c::set_title,
+ py::arg("title"),
+ D(eye_sink_c, set_title))
+
+
+ .def("set_line_label",
+ &eye_sink_c::set_line_label,
+ py::arg("which"),
+ py::arg("label"),
+ D(eye_sink_c, set_line_label))
+
+
+ .def("set_line_color",
+ &eye_sink_c::set_line_color,
+ py::arg("which"),
+ py::arg("color"),
+ D(eye_sink_c, set_line_color))
+
+
+ .def("set_line_width",
+ &eye_sink_c::set_line_width,
+ py::arg("which"),
+ py::arg("width"),
+ D(eye_sink_c, set_line_width))
+
+
+ .def("set_line_style",
+ &eye_sink_c::set_line_style,
+ py::arg("which"),
+ py::arg("style"),
+ D(eye_sink_c, set_line_style))
+
+
+ .def("set_line_marker",
+ &eye_sink_c::set_line_marker,
+ py::arg("which"),
+ py::arg("marker"),
+ D(eye_sink_c, set_line_marker))
+
+
+ .def("set_nsamps",
+ &eye_sink_c::set_nsamps,
+ py::arg("newsize"),
+ D(eye_sink_c, set_nsamps))
+
+
+ .def("set_samp_rate",
+ &eye_sink_c::set_samp_rate,
+ py::arg("samp_rate"),
+ D(eye_sink_c, set_samp_rate))
+
+
+ .def("set_line_alpha",
+ &eye_sink_c::set_line_alpha,
+ py::arg("which"),
+ py::arg("alpha"),
+ D(eye_sink_c, set_line_alpha))
+
+
+ .def("set_trigger_mode",
+ &eye_sink_c::set_trigger_mode,
+ py::arg("mode"),
+ py::arg("slope"),
+ py::arg("level"),
+ py::arg("delay"),
+ py::arg("channel"),
+ py::arg("tag_key") = "",
+ D(eye_sink_c, set_trigger_mode))
+
+
+ .def("title", &eye_sink_c::title, D(eye_sink_c, title))
+
+
+ .def("line_label",
+ &eye_sink_c::line_label,
+ py::arg("which"),
+ D(eye_sink_c, line_label))
+
+
+ .def("line_color",
+ &eye_sink_c::line_color,
+ py::arg("which"),
+ D(eye_sink_c, line_color))
+
+
+ .def("line_width",
+ &eye_sink_c::line_width,
+ py::arg("which"),
+ D(eye_sink_c, line_width))
+
+
+ .def("line_style",
+ &eye_sink_c::line_style,
+ py::arg("which"),
+ D(eye_sink_c, line_style))
+
+
+ .def("line_marker",
+ &eye_sink_c::line_marker,
+ py::arg("which"),
+ D(eye_sink_c, line_marker))
+
+
+ .def("line_alpha",
+ &eye_sink_c::line_alpha,
+ py::arg("which"),
+ D(eye_sink_c, line_alpha))
+
+
+ .def("set_size",
+ &eye_sink_c::set_size,
+ py::arg("width"),
+ py::arg("height"),
+ D(eye_sink_c, set_size))
+
+
+ .def("enable_menu",
+ &eye_sink_c::enable_menu,
+ py::arg("en") = true,
+ D(eye_sink_c, enable_menu))
+
+
+ .def("enable_grid",
+ &eye_sink_c::enable_grid,
+ py::arg("en") = true,
+ D(eye_sink_c, enable_grid))
+
+
+ .def("enable_autoscale",
+ &eye_sink_c::enable_autoscale,
+ py::arg("en") = true,
+ D(eye_sink_c, enable_autoscale))
+
+
+ .def("enable_stem_plot",
+ &eye_sink_c::enable_stem_plot,
+ py::arg("en") = true,
+ D(eye_sink_c, enable_stem_plot))
+
+
+ .def("enable_semilogx",
+ &eye_sink_c::enable_semilogx,
+ py::arg("en") = true,
+ D(eye_sink_c, enable_semilogx))
+
+
+ .def("enable_semilogy",
+ &eye_sink_c::enable_semilogy,
+ py::arg("en") = true,
+ D(eye_sink_c, enable_semilogy))
+
+
+ .def("enable_control_panel",
+ &eye_sink_c::enable_control_panel,
+ py::arg("en") = true,
+ D(eye_sink_c, enable_control_panel))
+
+
+ .def("enable_tags",
+ (void (eye_sink_c::*)(unsigned int, bool)) & eye_sink_c::enable_tags,
+ py::arg("which"),
+ py::arg("en"),
+ D(eye_sink_c, enable_tags, 0))
+
+
+ .def("enable_tags",
+ (void (eye_sink_c::*)(bool)) & eye_sink_c::enable_tags,
+ py::arg("en"),
+ D(eye_sink_c, enable_tags, 1))
+
+
+ .def("enable_axis_labels",
+ &eye_sink_c::enable_axis_labels,
+ py::arg("en") = true,
+ D(eye_sink_c, enable_axis_labels))
+
+
+ .def("disable_legend", &eye_sink_c::disable_legend, D(eye_sink_c, disable_legend))
+
+
+ .def("nsamps", &eye_sink_c::nsamps, D(eye_sink_c, nsamps))
+
+
+ .def("reset", &eye_sink_c::reset, D(eye_sink_c, reset))
+
+ ;
+}
diff --git a/gr-qtgui/python/qtgui/bindings/eye_sink_f_python.cc b/gr-qtgui/python/qtgui/bindings/eye_sink_f_python.cc
new file mode 100644
index 0000000000..76d52917e7
--- /dev/null
+++ b/gr-qtgui/python/qtgui/bindings/eye_sink_f_python.cc
@@ -0,0 +1,280 @@
+/*
+ * Copyright 2020 Free Software Foundation, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ *
+ */
+
+/* This file is automatically generated using bindtool */
+
+#include <pybind11/complex.h>
+#include <pybind11/pybind11.h>
+#include <pybind11/stl.h>
+
+namespace py = pybind11;
+
+#include <gnuradio/qtgui/utils.h>
+#include <qwt_legend.h>
+#include <qwt_painter.h>
+#include <qwt_plot.h>
+#include <qwt_plot_canvas.h>
+#include <qwt_plot_curve.h>
+#include <qwt_plot_magnifier.h>
+#include <qwt_plot_marker.h>
+#include <qwt_plot_panner.h>
+#include <qwt_plot_zoomer.h>
+#include <qwt_scale_engine.h>
+#include <qwt_scale_widget.h>
+#include <qwt_symbol.h>
+
+#include <gnuradio/qtgui/eye_sink_f.h>
+// pydoc.h is automatically generated in the build directory
+#include <eye_sink_f_pydoc.h>
+
+void bind_eye_sink_f(py::module& m)
+{
+
+ using eye_sink_f = ::gr::qtgui::eye_sink_f;
+
+
+ py::class_<eye_sink_f,
+ gr::sync_block,
+ gr::block,
+ gr::basic_block,
+ std::shared_ptr<eye_sink_f>>(m, "eye_sink_f", D(eye_sink_f))
+
+ .def(py::init(&eye_sink_f::make),
+ py::arg("size"),
+ py::arg("samp_rate"),
+ py::arg("name"),
+ py::arg("nconnections") = 1,
+ py::arg("parent") = __null,
+ D(eye_sink_f, make))
+
+
+ .def("exec_", &eye_sink_f::exec_, D(eye_sink_f, exec_))
+
+
+ .def("qwidget", &eye_sink_f::qwidget, D(eye_sink_f, qwidget))
+
+
+ // .def("pyqwidget",&eye_sink_f::pyqwidget,
+ // D(eye_sink_f,pyqwidget)
+ // )
+ // For the sip conversion to python to work, the widget object
+ // needs to be explicitly converted to Long
+ .def(
+ "pyqwidget",
+ [](std::shared_ptr<eye_sink_f> p) { return PyLong_AsLong(p->pyqwidget()); },
+ D(eye_sink_f, pyqwidget))
+
+ .def("set_y_axis",
+ &eye_sink_f::set_y_axis,
+ py::arg("min"),
+ py::arg("max"),
+ D(eye_sink_f, set_y_axis))
+
+
+ .def("set_y_label",
+ &eye_sink_f::set_y_label,
+ py::arg("label"),
+ py::arg("unit") = "",
+ D(eye_sink_f, set_y_label))
+
+
+ .def("set_update_time",
+ &eye_sink_f::set_update_time,
+ py::arg("t"),
+ D(eye_sink_f, set_update_time))
+
+
+ .def("set_title",
+ &eye_sink_f::set_title,
+ py::arg("title"),
+ D(eye_sink_f, set_title))
+
+
+ .def("set_line_label",
+ &eye_sink_f::set_line_label,
+ py::arg("which"),
+ py::arg("line"),
+ D(eye_sink_f, set_line_label))
+
+
+ .def("set_line_color",
+ &eye_sink_f::set_line_color,
+ py::arg("which"),
+ py::arg("color"),
+ D(eye_sink_f, set_line_color))
+
+
+ .def("set_line_width",
+ &eye_sink_f::set_line_width,
+ py::arg("which"),
+ py::arg("width"),
+ D(eye_sink_f, set_line_width))
+
+
+ .def("set_line_style",
+ &eye_sink_f::set_line_style,
+ py::arg("which"),
+ py::arg("style"),
+ D(eye_sink_f, set_line_style))
+
+
+ .def("set_line_marker",
+ &eye_sink_f::set_line_marker,
+ py::arg("which"),
+ py::arg("marker"),
+ D(eye_sink_f, set_line_marker))
+
+
+ .def("set_nsamps",
+ &eye_sink_f::set_nsamps,
+ py::arg("newsize"),
+ D(eye_sink_f, set_nsamps))
+
+
+ .def("set_samp_rate",
+ &eye_sink_f::set_samp_rate,
+ py::arg("samp_rate"),
+ D(eye_sink_f, set_samp_rate))
+
+
+ .def("set_line_alpha",
+ &eye_sink_f::set_line_alpha,
+ py::arg("which"),
+ py::arg("alpha"),
+ D(eye_sink_f, set_line_alpha))
+
+
+ .def("set_trigger_mode",
+ &eye_sink_f::set_trigger_mode,
+ py::arg("mode"),
+ py::arg("slope"),
+ py::arg("level"),
+ py::arg("delay"),
+ py::arg("channel"),
+ py::arg("tag_key") = "",
+ D(eye_sink_f, set_trigger_mode))
+
+
+ .def("title", &eye_sink_f::title, D(eye_sink_f, title))
+
+
+ .def("line_label",
+ &eye_sink_f::line_label,
+ py::arg("which"),
+ D(eye_sink_f, line_label))
+
+
+ .def("line_color",
+ &eye_sink_f::line_color,
+ py::arg("which"),
+ D(eye_sink_f, line_color))
+
+
+ .def("line_width",
+ &eye_sink_f::line_width,
+ py::arg("which"),
+ D(eye_sink_f, line_width))
+
+
+ .def("line_style",
+ &eye_sink_f::line_style,
+ py::arg("which"),
+ D(eye_sink_f, line_style))
+
+
+ .def("line_marker",
+ &eye_sink_f::line_marker,
+ py::arg("which"),
+ D(eye_sink_f, line_marker))
+
+
+ .def("line_alpha",
+ &eye_sink_f::line_alpha,
+ py::arg("which"),
+ D(eye_sink_f, line_alpha))
+
+
+ .def("set_size",
+ &eye_sink_f::set_size,
+ py::arg("width"),
+ py::arg("height"),
+ D(eye_sink_f, set_size))
+
+
+ .def("enable_menu",
+ &eye_sink_f::enable_menu,
+ py::arg("en") = true,
+ D(eye_sink_f, enable_menu))
+
+
+ .def("enable_grid",
+ &eye_sink_f::enable_grid,
+ py::arg("en") = true,
+ D(eye_sink_f, enable_grid))
+
+
+ .def("enable_autoscale",
+ &eye_sink_f::enable_autoscale,
+ py::arg("en") = true,
+ D(eye_sink_f, enable_autoscale))
+
+
+ .def("enable_stem_plot",
+ &eye_sink_f::enable_stem_plot,
+ py::arg("en") = true,
+ D(eye_sink_f, enable_stem_plot))
+
+
+ .def("enable_semilogx",
+ &eye_sink_f::enable_semilogx,
+ py::arg("en") = true,
+ D(eye_sink_f, enable_semilogx))
+
+
+ .def("enable_semilogy",
+ &eye_sink_f::enable_semilogy,
+ py::arg("en") = true,
+ D(eye_sink_f, enable_semilogy))
+
+
+ .def("enable_control_panel",
+ &eye_sink_f::enable_control_panel,
+ py::arg("en") = true,
+ D(eye_sink_f, enable_control_panel))
+
+
+ .def("enable_tags",
+ (void (eye_sink_f::*)(unsigned int, bool)) & eye_sink_f::enable_tags,
+ py::arg("which"),
+ py::arg("en"),
+ D(eye_sink_f, enable_tags, 0))
+
+
+ .def("enable_tags",
+ (void (eye_sink_f::*)(bool)) & eye_sink_f::enable_tags,
+ py::arg("en"),
+ D(eye_sink_f, enable_tags, 1))
+
+
+ .def("enable_axis_labels",
+ &eye_sink_f::enable_axis_labels,
+ py::arg("en") = true,
+ D(eye_sink_f, enable_axis_labels))
+
+
+ .def("disable_legend", &eye_sink_f::disable_legend, D(eye_sink_f, disable_legend))
+
+
+ .def("nsamps", &eye_sink_f::nsamps, D(eye_sink_f, nsamps))
+
+
+ .def("reset", &eye_sink_f::reset, D(eye_sink_f, reset))
+
+ ;
+}
diff --git a/gr-qtgui/python/qtgui/bindings/python_bindings.cc b/gr-qtgui/python/qtgui/bindings/python_bindings.cc
index 5fa4c39e28..35bf303cf6 100644
--- a/gr-qtgui/python/qtgui/bindings/python_bindings.cc
+++ b/gr-qtgui/python/qtgui/bindings/python_bindings.cc
@@ -30,6 +30,8 @@ void bind_const_sink_c(py::module&);
void bind_constellationdisplayform(py::module&);
void bind_displayform(py::module&);
void bind_edit_box_msg(py::module&);
+void bind_eye_sink_c(py::module&);
+void bind_eye_sink_f(py::module&);
void bind_form_menus(py::module&);
void bind_freq_sink_c(py::module&);
void bind_freq_sink_f(py::module&);
@@ -97,6 +99,8 @@ PYBIND11_MODULE(qtgui_python, m)
// bind_constellationdisplayform(m);
// bind_displayform(m);
// bind_edit_box_msg(m);
+ bind_eye_sink_c(m);
+ bind_eye_sink_f(m);
// bind_form_menus(m);
bind_freq_sink_c(m);
bind_freq_sink_f(m);
diff --git a/gr-qtgui/python/qtgui/qa_qtgui.py b/gr-qtgui/python/qtgui/qa_qtgui.py
index 32cd534705..bed7272387 100644
--- a/gr-qtgui/python/qtgui/qa_qtgui.py
+++ b/gr-qtgui/python/qtgui/qa_qtgui.py
@@ -72,10 +72,10 @@ class test_qtgui(gr_unittest.TestCase):
self.qtsnk = qtgui.histogram_sink_f(1024, 100, -1, 1, "Test", 1, None)
def test13(self):
- self.qtsnk = qtgui.eye_sink_c(1024, 1, "Test", 1)
+ self.qtsnk = qtgui.eye_sink_c(1024, 1, "Test", 1, None)
def test13(self):
- self.qtsnk = qtgui.eye_sink_c(1024, 1, "Test", 1)
+ self.qtsnk = qtgui.eye_sink_c(1024, 1, "Test", 1, None)
if __name__ == '__main__':
gr_unittest.run(test_qtgui, "test_qtgui.xml")