Hello,
I need your help porting my application Series60-Remote [1] to Mac OS X.
It is an open source software suite for S60 mobile phones, which is written in
Python. Its GUI is based on PyQt4 [2] and it uses Bluetooth to connect to a
mobile phone.
I tried to port this application to Mac OS X using lightblue as bluetooth
wrapper for IOBluetooth. I tried to handle the bluetooth connection in a
seperate thread (like in Linux and Windows) [3], but this seems to be not
possible with IOBluetooth.
My next try was to use an asynchronous connection instead and use IOBluetooth
directly. It works great with the attached Objective-C application [4].
But how can I use this wrapper in my Python application?
When I import this extension using objc I already have the Qt event loop
running. But I also have to start the Cocoa event loop (CFRunLoopRun()) if I
want to receive rfcommChannelData and rfcommChannelOpenComplete events?
Is it possible to integrate this event loop in Qt, like it is possible to
integrate the Qt event loop in GTK+?
Did anybody try something like this? Are there any examples?
[I know this issue isn't directly related to PyObjc, but maybe anybody has
done a similar thing?]
Thank you for every help,
Lukas Hetzenecker
|