[PyQt] phonon audio volume setting problem

2012-03-29 Thread Stephen Gava
hi there. i'm using phonon to play some sounds but i can't seem to control the audio output volume as i expect to be able to. i set up phonon like so: self.sfx_output=Phonon.AudioOutput(Phonon.MusicCategory,self) self.sfx_player=Phonon.MediaObject(self) Phonon.createPath(self.sfx_player,self.

Re: [PyQt] staticMetaObject

2012-03-29 Thread Phil Thompson
On Thu, 29 Mar 2012 13:44:06 +0200, Kermit wrote: > Hi PyQt community, > > i can't understand why staticMetaObject isn't know in __new__ construction A sip type isn't completely ready until the meta-type's __init__ method has run. Therefore if you want to look at staticMetaObject before an insta

Re: [PyQt] How SIP detects that a QObject need to destruct.

2012-03-29 Thread Phil Thompson
On Thu, 29 Mar 2012 19:22:10 +0800, Goldfish Huang wrote: > Hi, all. > > I am doubted how  SIP deal with QObject's cycle reference, when I try > to fix some unknown memory leaks. It seems that SIP only keep a > reference to QObject, whatever how many children it has. Then a > QObject must have no

[PyQt] staticMetaObject

2012-03-29 Thread Kermit
Hi PyQt community, i can't understand why staticMetaObject isn't know in __new__ construction first step, i think is because staticMetaObject is create for instance, but in this code bellow, staticMetaObject is know before real instanciation no way for work with in __new__ function ? Thx for yo

Re: [PyQt] How SIP detects that a QObject need to destruct.

2012-03-29 Thread Erik Janssens
creating/deleting children does not change the refcount of a QObject, since this is done purely in C++ On Thu, 2012-03-29 at 19:22 +0800, Goldfish Huang wrote: > Hi, all. > > I am doubted how SIP deal with QObject's cycle reference, when I try > to fix some unknown memory leaks. It seems that SI

[PyQt] How SIP detects that a QObject need to destruct.

2012-03-29 Thread Goldfish Huang
Hi, all. I am doubted how  SIP deal with QObject's cycle reference, when I try to fix some unknown memory leaks. It seems that SIP only keep a reference to QObject, whatever how many children it has. Then a QObject must have not less than 2 reference count, one from Python and another from SIP. Th