[qcineoob] casting almost done
This commit is contained in:
parent
e2ac58ae4f
commit
a7be6ee6f4
6 changed files with 81 additions and 19 deletions
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
import urllib
|
||||
|
||||
from PyQt4.QtCore import QUrl,Qt
|
||||
from PyQt4.QtCore import QUrl,Qt,SIGNAL
|
||||
from PyQt4.QtGui import QFrame, QImage, QPixmap
|
||||
|
||||
from weboob.applications.qcineoob.ui.movie_ui import Ui_Movie
|
||||
|
|
@ -32,6 +32,8 @@ class Movie(QFrame):
|
|||
self.ui = Ui_Movie()
|
||||
self.ui.setupUi(self)
|
||||
|
||||
self.connect(self.ui.castingButton, SIGNAL("clicked()"), self.casting)
|
||||
|
||||
self.movie = movie
|
||||
self.ui.titleLabel.setText(movie.original_title)
|
||||
self.ui.durationLabel.setText(unicode(movie.duration))
|
||||
|
|
@ -54,3 +56,10 @@ class Movie(QFrame):
|
|||
img = QImage.fromData(data)
|
||||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img))
|
||||
|
||||
def casting(self):
|
||||
role = None
|
||||
tosearch = self.ui.castingCombo.currentText()
|
||||
if tosearch != 'all':
|
||||
role = tosearch[:-1]
|
||||
self.parent.doAction(self.parent.castingAction,[self.movie.id,role])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue