[PyQt] PyQt examples phonon.
Christoph Burgmer
chrislb at gmx.de
Tue Jun 29 09:44:06 BST 2010
> On Fri Jun 25 13:20:11 BST 2010, F.A.Pinkse wrote:
> > I was looking inside the PyQt Examples source/phonon/musicplayer.pyw
> > using Eric5 on Python3
> >
> > Eric found:
> >
> > warning: variable declared but never used.
> >
> > source = self.metaInformationResolver.currentSource()
> >
> > It is in line number 185
>
> If source isn't used, and it seems that it isn't, then that line should
> just be removed from the example.
If you do this to the MainWindow, your application will crash.
AFAIK an object is deleted once no reference is being held, so I'd be careful
with deleting that. I might be wrong though.
-Christoph
More information about the PyQt
mailing list