From: Stefan Bund Date: Mon, 24 Jan 2011 23:26:31 +0000 (+0100) Subject: expose QDesktopServices::openUrl to python X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=ae215129b1f85bcdf776b59c42ac8d5f992d4bd9;p=pykit.git expose QDesktopServices::openUrl to python --- diff --git a/PythonPublisher.cc b/PythonPublisher.cc index c6ad1fc..f944b6d 100644 --- a/PythonPublisher.cc +++ b/PythonPublisher.cc @@ -13,6 +13,7 @@ #include #include #include "Publisher.hh" +#include //#include "PythonPublisher.mpp" #define prefix_ @@ -436,6 +437,8 @@ BOOST_PYTHON_MODULE(_pykit) py::class_("Publisher") .def("publish", py::pure_virtual(&pykit::Publisher::publish)) ; + + py::def("openUrl", &QDesktopServices::openUrl); } PYTHON_EXTERN_MODULE(_httpapi);