1
2 from PyQt4 import QtCore, QtGui
3 import sys
4 from lanzador_base import Ui_Dialog
5 import utils
6
8
10 Ui_Dialog.setupUi(self, Dialog)
11 self.ha_aceptado = False
12 self._quitar_barras_scroll()
13 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), Dialog.accept)
14 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), self.acepta)
15 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Dialog.reject)
16 QtCore.QMetaObject.connectSlotsByName(Dialog)
17
19 self.ha_aceptado = True
20
22 motor = ['qtgl', 'qt']
23 modo = [False, True]
24 audio = ['gst', 'phonon', 'deshabilitado']
25
26 i = self.comboBox.currentIndex()
27 j = self.comboBox_2.currentIndex()
28 k = self.comboBox_3.currentIndex()
29
30 return (motor[i], modo[j], audio[k])
31
35
37 escena = QtGui.QGraphicsScene()
38 self.graphicsView.setScene(escena)
39 pixmap = QtGui.QGraphicsPixmapItem(QtGui.QPixmap(ruta))
40
41
42 width = pixmap.boundingRect().width()
43 height = pixmap.boundingRect().height()
44 self.graphicsView.setFixedSize(width, height)
45
46 escena.addItem(pixmap)
47
48
49 app = None
50
51
73