I've played around with it and got code that plays mp3s now. I'm not sure what
I was doing wrong or why it plays now...but it does, so I'm going to use it:
#!/usr/bin/env python
import sip
sip.setapi('QString', 2)
import sys
from PyQt4 import QtCore, QtGui
from PyQt4.phonon import Phonon
When I pare down the code to the following, I can't hear the mp3 play either:
#!/usr/bin/env python
import sip
sip.setapi('QString', 2)
import sys
from PyQt4 import QtCore, QtGui
from PyQt4.phonon import Phonon
class MainWindow(QtGui.QMainWindow):
def __init__(self):
super(QtGui.
But, the PYQT example works:
https://github.com/Werkov/PyQt4/blob/master/examples/phonon/musicplayer.py#L1
It's just my code isn't working for some reason. I don't hear anything coming
from it
--
http://mail.python.org/mailman/listinfo/python-list
I unplugged the tv capture card and got no errors at all. It didn't cause it to
crash when I had it plugged in. However, it appears that it's not actually
playing the mp3. I don't hear it at all. I checked my sound mixer and no
channels are muted.
--
http://mail.python.org/mailman/listinfo/pyth
It's not giving me an exception. Here is the code I used:
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.phonon import Phonon
import os
import sys, traceback
def lumberjack():
song = '/home/tannhaus/Music/A Perfect Circle/eMOTIVE/02 Imagine.mp3'
QCoreApplication.setApplic
On Tue, Aug 27, 2013 at 1:42 PM, wrote:
> Here is my code. I'm just trying to play an mp3 that I've clicked in a PyQT
> listwidget:
>
> @pyqtSlot()
> def item_clicked(self):
> row = self.listWidget.currentRow()
> song = musiclist[row]
> QCoreApplication.setApplica
Looking in /var/log/messages, every time I get that error I get:
[41553.128652] xc2028 9-0061: i2c input error: rc = -19 (should be 2)
[41553.152537] xc2028 9-0061: i2c input error: rc = -19 (should be 2)
[41553.355913] xc2028 9-0061: i2c input error: rc = -19 (should be 2)
[41553.379712] xc2028 9
Here is my code. I'm just trying to play an mp3 that I've clicked in a PyQT
listwidget:
@pyqtSlot()
def item_clicked(self):
row = self.listWidget.currentRow()
song = musiclist[row]
QCoreApplication.setApplicationName("Phonon")
output = Phonon.AudioOutput(Ph