Re: [PyQt] How to call DBus method with UInt32 arg?

2012-12-13 Thread Evade Flow
> v = QVariant(10) > v.convert(QVariant.UInt) Yeah, this definitely does work for me, Phil, thanks... On Thu, Dec 13, 2012 at 1:58 AM, Phil Thompson wrote: > On Thu, 13 Dec 2012 06:47:50 +, Phil Thompson > wrote: >> On Mon, 10 Dec 2012 13:41:36 -0500, Evade Flow >

[PyQt] How to call DBus method with UInt32 arg?

2012-12-10 Thread Evade Flow
Hi, all. Does anyone have experience trying to pass UInt32 arguments to a DBus service using PyQt4.QtDBus? The program appended below generates the following error: % python build_connection.py 0 0 0 1234 Call failed: No such method 'buildConnection' in interface 'com.acme.Audio.Connection' at ob

Re: [PyQt] How to process QDBusPendingCallWatcher results?

2012-08-13 Thread Evade Flow
, Phil Thompson wrote: > On Mon, 13 Aug 2012 11:46:19 -0400, Evade Flow > wrote: >> I noticed that, too, and was a little surprised it worked anyway. > > The pyqtSlot() call is being ignored. > >> But >> shouldn't it be: >> >> @QtCore.p

Re: [PyQt] How to process QDBusPendingCallWatcher results?

2012-08-13 Thread Evade Flow
n Mon, Aug 13, 2012 at 11:33 AM, Phil Thompson wrote: > On Mon, 13 Aug 2012 11:13:36 -0400, Evade Flow > wrote: >>> Sorry, my mistake - QDBusPendingReply, not QPyDBusPendingReply... >> >> Ah, okay---yeah, that works great, thanks! I had a couple minor typos in >> my

Re: [PyQt] How to process QDBusPendingCallWatcher results?

2012-08-13 Thread Evade Flow
onnection.systemBus(), app) async = dev.asyncCall("FilesystemListOpenFiles"); watcher = QtDBus.QDBusPendingCallWatcher(async, dev) watcher.finished.connect(dev.callFinishedSlot) sys.exit(app.exec_()) On Mon, Aug 13, 2012 at 10:00 AM, Phil Thompson wrote: > On Mon, 1

Re: [PyQt] How to process QDBusPendingCallWatcher results?

2012-08-13 Thread Evade Flow
ons? (I built from the PyQt4.9.4 release tarball; do I need to use a development snapshot instead?) On Mon, Aug 13, 2012 at 4:43 AM, Phil Thompson wrote: > On Sun, 12 Aug 2012 23:31:54 -0400, Evade Flow > wrote: >> I'm working on an app that needs to invoke methods in >&

[PyQt] How to process QDBusPendingCallWatcher results?

2012-08-12 Thread Evade Flow
I'm working on an app that needs to invoke methods in various D-Bus services asynchronously, so I wrote this small program to test the basic machinery: from PyQt4 import QtCore, QtDBus class DeviceInterface(QtDBus.QDBusAbstractInterface): def __init__(self, service, path, connection,

Re: [PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-10 Thread Evade Flow
all your issues? Indeed, it does! Thanks so much, Phil!! On Fri, Aug 10, 2012 at 5:04 AM, Phil Thompson wrote: > On Tue, 7 Aug 2012 15:45:43 -0400, Evade Flow wrote: >>> In theory you should be able to use QDBusArgument but I've not tested >>> it - I've alwa

Re: [PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-09 Thread Evade Flow
anyone is interested, you can find the complete C++ example here: - http://github.com/evadeflow/chat-demo What I desperately want to know is: how can I write the exact same demo in PyQt4---including the sendMessages() method? Is it possible? On Thu, Aug 9, 2012 at 12:06 PM, Evade Flow wrote

Re: [PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-09 Thread Evade Flow
gly) so darn difficult to invoke from Python! `:-} On Tue, Aug 7, 2012 at 4:25 PM, Phil Thompson wrote: > On Tue, 7 Aug 2012 15:45:43 -0400, Evade Flow wrote: >>> In theory you should be able to use QDBusArgument but I've not tested >>> it - I've always strugg

Re: [PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-07 Thread Evade Flow
an I call this function?") @pyqtProperty(str) def name(self): return self.parent().name @name.setter def name(self, value): self.parent().name = value def start(): app = QCoreApplication([]) bus = QDBusConnection.sessionBus() server = MyServer() b

Re: [PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-06 Thread Evade Flow
On Mon, Aug 6, 2012 at 1:03 PM, Phil Thompson wrote: > On Mon, 6 Aug 2012 12:49:21 -0400, Evade Flow wrote: >> On Mon, Aug 6, 2012 at 12:29 PM, Phil Thompson >> wrote: >>> On Mon, 6 Aug 2012 12:15:44 -0400, Evade Flow >>> wrote: >>>> I'm tryin

Re: [PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-06 Thread Evade Flow
On Mon, Aug 6, 2012 at 12:29 PM, Phil Thompson wrote: > On Mon, 6 Aug 2012 12:15:44 -0400, Evade Flow wrote: >> I'm trying to write a PyQt4-based mock object for a C++ app exposed over >> D-Bus with the following interface: >> >> Q_CLASSINFO("D-Bu

Re: [PyQt] easy_install for PyQt

2012-08-06 Thread Evade Flow
I would recommending using cx_Freeze to make a binary installer for your app (http://cx-freeze.sourceforge.net/). It's at least do-able that way. I've never had any luck trying to get users to install the entire PyQt stack themselves on Windows. Another option might be to provide three links, li

[PyQt] How to expose function accepting array of struct to D-Bus?

2012-08-06 Thread Evade Flow
I'm trying to write a PyQt4-based mock object for a C++ app exposed over D-Bus with the following interface: Q_CLASSINFO("D-Bus Interface", "com.acme.Audio.Control") Q_CLASSINFO("D-Bus Introspection", ' \n' '\n' ' \n' ' \n' '\n' '\n' '