Re: connecting clicked signal to different slots depending on function executing

2013-09-01 Thread tausciam
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

Re: connecting clicked signal to different slots depending on function executing

2013-09-01 Thread tausciam
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

connecting clicked signal to different slots depending on function executing

2013-09-01 Thread tausciam
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