[PySide] Possible to use DBus on Windows?

Aaron Richiger a.richi at bluewin.ch
Wed Jan 23 17:02:18 CET 2013


Hello Zhu!

According to the doc, you would run in troubles using it anyways under 
windows:
" The QtDBus module is a Unix-only library that you can use to make 
Inter-Process Communication using the D-Bus protocol. "

But you can find some rare threads about how to get it working at least 
in C++ even on Windows, but it seems to need some patience, but if you 
are interested, the following is such a link to get it working with C++:
http://www.qtcentre.org/threads/18305-QtDBus-on-Windows

But anyway, as far as I know, QtDBus is not supported in PySide, but 
there is a tutorial how to do IPC with Python/PySide using the 
dbus-python module:
http://qt-project.org/wiki/PySide_DBus_Integration

Probably, another form of IPC would also be a solution for your task, 
but since we don't know the task, you have to evaluate this. I used RPC 
(Pythons SimpleXMLRPCServer module) for similar purposes. I never used 
zmq, but would try it the next time with it, because it looks very 
promising. Here are the links to both of them:
RPC: http://docs.python.org/2/library/simplexmlrpcserver.html
ZMQ: http://www.zeromq.org/

I hope this gives you some starting points.
Cheers!
Aaron


http://mail.kde.org/pipermail/kde-windows/2011-September/006091.html

Am 23.01.2013 02:08, schrieb ZHONG Zhu:
> Hi All,
>
> Is it possible to use DBus on Windows? If it is, how?
> My application is multi-processing based. We choose to use Shared Memory to do IPC but it's cumbersome. I'd like to find a better to way to improve our current solution.
>
> Thanks in advance!
>
> Zhu
> _______________________________________________
> PySide mailing list
> PySide at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside




More information about the PySide mailing list