[PyKDE] PyQt dbus doesn't work with HAL

2007-01-10 Thread Kovid Goyal
Hi, I've been testing dbus.mainloop.qt with HAL. With the glib mainloop my code receives HAL signals, with the Qt mainloop it does not. THis is with dbus-pythun-0.80rc3 and the latest PyQt4 snapshot. Here's the test code import dbus, sys import dbus.mainloop.qt from PyQt4.Qt import QApplication

Re: [PyKDE] performance issues

2007-01-10 Thread Steven James Samuel Stapleton
Thank you for the de-noobification. Fortunately I can't see this having more than 50-100 features in a setting. Whatever the problem is then, it's specific to that computer then. (1000 would probably take it 10 minutes) -Jim Stapleton - Original Message - From: "Matt Newell" <[EMAIL

Re: [PyKDE] performance issues

2007-01-10 Thread Matt Newell
On Wednesday 10 January 2007 15:52, Steven James Samuel Stapleton wrote: > Sure, I thought the size issue was more due to not wanting to deal with a > lot of code. > > run the ItemGenerator.py script in the top level directory. I've actually > got a newer version with tooltips, but this one will do

Re: [PyKDE] performance issues

2007-01-10 Thread Steven James Samuel Stapleton
Sure, I thought the size issue was more due to not wanting to deal with a lot of code. run the ItemGenerator.py script in the top level directory. I've actually got a newer version with tooltips, but this one will do for the example, especially since the file in question is a lot shorter (this

[PyKDE] python/qt "slots" clash

2007-01-10 Thread Patrick Stinson
There is a clash with the "slots" definition in (at least) python2.3 and the qt definition of "slots." Apparently this bug has been fixed in a later version of python, but I would like to avoid an upgrade at this point. The problem is solvable if you #undef slots before including any qt headers

[PyKDE] Re: python/qt "slots" clash

2007-01-10 Thread Patrick Stinson
sorry for the double-post, but FYI adding #undef slots to the top of all of the sip*.cpp makes that file compile just fine. This is not a solution though because those files are auto-generated by sip... On 1/10/07, Patrick Stinson <[EMAIL PROTECTED]> wrote: There is a clash with the "slots" de

[PyKDE] QThread, signals and slots

2007-01-10 Thread Ole Morten Grodås
Hi, I have a problem with passing signals a cross threads. I was under the impression that when using Qt.QueuedConnection the slot would always be executed in the thread that the receiver object lived. But when I created this test application I does not seem to be doing that. Any suggestions on

Re: [PyKDE] File Drag n drop

2007-01-10 Thread Matt Newell
On Tuesday 09 January 2007 16:57, Tony Cappellini wrote: > After looking through the examples & demos, I don't see an example of what > I'm looking for. > > I would like to be able to drag a file or files onto a Python QT app, and > have the app process the file(s). > > The Draggable Icons example

Re: [PyKDE] File Drag n drop

2007-01-10 Thread Matt Newell
On Tuesday 09 January 2007 16:57, Tony Cappellini wrote: > After looking through the examples & demos, I don't see an example of what > I'm looking for. > > I would like to be able to drag a file or files onto a Python QT app, and > have the app process the file(s). > > The Draggable Icons example

[PyKDE] easy qtreewidget question

2007-01-10 Thread Matt Chambers
Anyone have any ideas on how I can disable the double click expand/collapse action on a QTreeWidget? Using pyqt 4.0.1, It doesn't seem like many of the disconnect methods have been implemented, im not sure what slots to actually disconnect. -Matt

Re: [PyKDE] performance issues

2007-01-10 Thread Hans-Peter Jansen
Am Mittwoch, 10. Januar 2007 02:38 schrieb Steven James Samuel Stapleton: > I can post runnable code easy enough, problem is I'm not sure how to make > the code /short/ Provide a link? > Thanks, > -Jim ___ PyKDE mailing listPyKDE@mats.imk.fraunhofe

[PyKDE] Re: __truediv__ support in SIP

2007-01-10 Thread Phil Thompson
On Tuesday 09 January 2007 2:36 pm, Giovanni Bajo wrote: > Hello, > > SIP does not currently support __truediv__. The attached patch lets the > user manually define it through %MethodCode in a SIP file. > > I think SIP should also automatically generate __truediv__ for > operator/, with exactly the

Re: [PyKDE] performance issues

2007-01-10 Thread Giovanni Bajo
On 10/01/2007 0.34, Steven James Samuel Stapleton wrote: Background, I'm working on an app for a Pen&Paper RPG I'm making. Most gamers are *not* tech savvy surprisingly enough, so I want to end up with a very simple installer for those on Windows where they don't have to bother with a lot of p

[PyKDE] Re: File Drag n drop

2007-01-10 Thread Lukáš Lalinský
Tony Cappellini wrote / napísal(a): > After looking through the examples & demos, I don't see an example of what > I'm looking for. > > I would like to be able to drag a file or files onto a Python QT app, and > have the app process the file(s). > > The Draggable Icons example isn't quite the s