[PyQt] IPC in PyQt4

zw g pekingmaster at gmail.com
Tue Oct 25 08:54:28 BST 2011


Thanks, Andrei.

I'm going to give 'multiprocessing' a look which was contained in  the
standard lib of python.


Gui


On Tue, Oct 25, 2011 at 3:06 PM, Andrei Kopats <hlamer at tut.by> wrote:

>
> IPC and other system dependent functionality was probably added to Qt,
> because C++ standard library lacks it. But, since Python has powerful
> crossplatform standard library and lot of free packages, I'm not sure you
> should use PyQt for your IPC. It is often good idea to divide GUI and core
> functionality.
> Try looking at Python native libs.
>
> Best Regards,
> Andrei Kopats
>
>
> 2011/10/25 zw g <pekingmaster at gmail.com>
>
>> Thank you David.
>>
>> Yes, i need the cross-platform feature.
>>
>> And yes, i controlled both ends of the communication, and each app has
>> it's own GUI window.
>> All my want is send some messages from one side to another, to let the
>> target one do some internet searching thing then display the result on it's
>> UI.
>>
>> More suggestion?
>> Thanks all the time.
>>
>>
>> Gui
>>
>>
>>
>> On Tue, Oct 25, 2011 at 5:30 AM, David Boddie <david at boddie.org.uk>wrote:
>>
>>> On Sat, 22 Oct 2011 10:00:43 +0800, zw g wrote:
>>>
>>> > Could someone tell me that what is the best or recommended approach to
>>> do
>>> > the IPC(Inter-Process Communication) thing?
>>> >
>>> > QProcess?
>>> > QSharedMemory?
>>> > Or just socket?
>>>
>>> It depends on how your application works, whether or not you want a
>>> cross-platform solution, and what other applications you will be
>>> communicating with.
>>>
>>> If you control both ends of the communication, all of the above will
>>> work.
>>> There are Qt examples for these, and some of these may have been ported
>>> to
>>> Python.
>>>
>>> There is also D-Bus for Unix/Linux applications.
>>>
>>> David
>>> _______________________________________________
>>> PyQt mailing list    PyQt at riverbankcomputing.com
>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>>
>>
>>
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20111025/14a5c2ec/attachment.html>


More information about the PyQt mailing list