Nevermind. I found that it would let me create the connection again then
when I disconnected, it would disconnect all of the instances...
so I ended up with:
self.tableWidget.cellClicked.connect(self.videocell_clicked)
self.tableWidget.cellClicked.disconnect(self.videocel
I should add that I know about:
self.tableWidget.cellClicked.disconnect(self.videocell_clicked)
but, when I do that, if the connection is not there, then the program crashes.
So, how could I check to see if the connection is there then break it?
--
http://mail.python.org/mailman/listinfo/pyth
I have one tablewidget I want to use for two different uses, audio and video.
If cover art is displayed and the user clicks the cover art, it emits a cell
clicked and gets the list of the songs. If video thumbnails are displayed, it
emits a cell clicked and plays the video fullscreen.
So, I hav
Lee Harr, thank you. I took your suggestion after I finished coding the audio
section. You can see the improved project here: http://i.imgur.com/permuRQ.jpg
On Friday, August 23, 2013 7:35:53 PM UTC-5, Lee Harr wrote:
> > That's the problem though. It is exactly how I want it in designer. It's
>
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
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
Thanks. I probably will do exactly like you suggested later on. But, those two
lines have solved the problem I had and I can work on the actual program now. I
can come back to the GUI later.
Here is what it looks like now: http://i.imgur.com/sLiSU6M.png
On Friday, August 23, 2013 7:35:53 PM UTC
Thank you... I found my problem
class MainWindow(QMainWindow, Ui_MainWindow):
def __init__(self, parent=None):
super(MainWindow, self).__init__(parent)
self.setupUi(self)
That seems to take care of it... if I comment out everything else, I get my
pristine form
I do
Thank you. I just deleted all of them, reran pyuic4 on window.ui and
regenerated window.py just to make sure. Unfortunately, I get the same problem.
I've got the GUI perfectly designed just like I want it in window.py... just
can't figure out how to use it in my program.
On Friday, August 23, 2
On Thursday, August 22, 2013 3:26:17 AM UTC-5, Phil Thompson wrote:
> It looks like you aren't using a layout to arrange your widgets.
>
> Explicitly specifying geometries is a bad idea.
>
>
>
> Phil
Thanks.QT Designer uses set geometry and I'm totally lost as how to implement
it. I've tried
15 matches
Mail list logo