147 lines
6.3 KiB
Python
147 lines
6.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'usbinstall.ui'
|
|
#
|
|
# Created: Fri Oct 14 18:57:57 2011
|
|
# by: PyQt4 UI code generator 4.8.3
|
|
#
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
from PyQt4 import QtCore, QtGui
|
|
|
|
try:
|
|
_fromUtf8 = QtCore.QString.fromUtf8
|
|
except AttributeError:
|
|
_fromUtf8 = lambda s: s
|
|
|
|
class Ui_MainWindow(object):
|
|
def setupUi(self, MainWindow):
|
|
# Codice per la finestra
|
|
MainWindow.setObjectName(_fromUtf8("MainWindow"))
|
|
MainWindow.resize(500, 405)
|
|
MainWindow.setWindowTitle(_fromUtf8(""))
|
|
self.centralwidget = QtGui.QWidget(MainWindow)
|
|
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
|
|
|
|
# Immagine di sfondo
|
|
self.i_back = QtGui.QLabel(self.centralwidget)
|
|
self.i_back.setGeometry(QtCore.QRect(10, 10, 480, 300))
|
|
self.i_back.setText(_fromUtf8(""))
|
|
self.i_back.setObjectName(_fromUtf8("i_back"))
|
|
|
|
# Label della descrizione
|
|
self.l_descrizione = QtGui.QLabel(self.centralwidget)
|
|
self.l_descrizione.setGeometry(QtCore.QRect(10, 317, 251, 31))
|
|
self.l_descrizione.setText(_fromUtf8(""))
|
|
self.l_descrizione.setObjectName(_fromUtf8("l_descrizione"))
|
|
|
|
# Linea orizzontale di separazione
|
|
self.line = QtGui.QFrame(self.centralwidget)
|
|
self.line.setGeometry(QtCore.QRect(10, 350, 481, 20))
|
|
self.line.setFrameShape(QtGui.QFrame.HLine)
|
|
self.line.setFrameShadow(QtGui.QFrame.Sunken)
|
|
self.line.setObjectName(_fromUtf8("line"))
|
|
|
|
# Bottone Avanti
|
|
self.b_avanti = QtGui.QPushButton(self.centralwidget)
|
|
self.b_avanti.setGeometry(QtCore.QRect(400, 370, 90, 29))
|
|
self.b_avanti.setObjectName(_fromUtf8("b_avanti"))
|
|
|
|
# Bottone Indietro
|
|
self.b_indietro = QtGui.QPushButton(self.centralwidget)
|
|
self.b_indietro.setGeometry(QtCore.QRect(300, 370, 90, 29))
|
|
self.b_indietro.setText(_fromUtf8(""))
|
|
self.b_indietro.setObjectName(_fromUtf8("b_indietro"))
|
|
|
|
# Bottone di help
|
|
self.b_help = QtGui.QPushButton(self.centralwidget)
|
|
self.b_help.setGeometry(QtCore.QRect(464, 320, 26, 26))
|
|
self.b_help.setText(_fromUtf8(""))
|
|
icon = QtGui.QIcon()
|
|
icon.addPixmap(QtGui.QPixmap(_fromUtf8("img/dialog-question.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
self.b_help.setIcon(icon)
|
|
self.b_help.setIconSize(QtCore.QSize(24, 24))
|
|
self.b_help.setFlat(True)
|
|
self.b_help.setObjectName(_fromUtf8("b_help"))
|
|
|
|
# Casella di testo con il percorso del file scelto
|
|
self.t_file = QtGui.QLineEdit(self.centralwidget)
|
|
self.t_file.setGeometry(QtCore.QRect(212, 321, 222, 25))
|
|
self.t_file.setObjectName(_fromUtf8("t_file"))
|
|
|
|
# Immagine che rende piu lunga la casella di testo
|
|
self.pach1 = QtGui.QLabel(self.centralwidget)
|
|
self.pach1.setGeometry(QtCore.QRect(430, 320, 32, 27))
|
|
self.pach1.setText(_fromUtf8(""))
|
|
self.pach1.setPixmap(QtGui.QPixmap(_fromUtf8("img/pach1.png")))
|
|
self.pach1.setObjectName(_fromUtf8("pach1"))
|
|
|
|
# Bottone sopra la parte della finta casella di testo
|
|
self.b_apri_file = QtGui.QPushButton(self.centralwidget)
|
|
self.b_apri_file.setGeometry(QtCore.QRect(431, 320, 31, 27))
|
|
self.b_apri_file.setText(_fromUtf8(""))
|
|
icon1 = QtGui.QIcon()
|
|
icon1.addPixmap(QtGui.QPixmap(_fromUtf8("img/document-open.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
self.b_apri_file.setIcon(icon1)
|
|
self.b_apri_file.setFlat(True)
|
|
self.b_apri_file.setObjectName(_fromUtf8("b_apri_file"))
|
|
|
|
# Immagine del fumetto
|
|
self.n_img = QtGui.QLabel(self.centralwidget)
|
|
self.n_img.setGeometry(QtCore.QRect(289, 200, 211, 121))
|
|
self.n_img.setText(_fromUtf8(""))
|
|
self.n_img.setPixmap(QtGui.QPixmap(_fromUtf8("img/nuvola.png")))
|
|
self.n_img.setObjectName(_fromUtf8("n_img"))
|
|
self.n_img.hide()
|
|
|
|
# Testo del fumetto
|
|
self.n_testo = QtGui.QLabel(self.centralwidget)
|
|
self.n_testo.setGeometry(QtCore.QRect(298, 200, 181, 101))
|
|
self.n_testo.setText(_fromUtf8(""))
|
|
self.n_testo.setOpenExternalLinks(True)
|
|
self.n_testo.setWordWrap(True)
|
|
self.n_testo.setObjectName(_fromUtf8("n_testo"))
|
|
self.n_testo.hide()
|
|
|
|
# Croce del fumetto
|
|
self.n_chiudi = QtGui.QPushButton(self.centralwidget)
|
|
self.n_chiudi.setGeometry(QtCore.QRect(471, 202, 14, 14))
|
|
self.n_chiudi.setText(_fromUtf8(""))
|
|
icon1 = QtGui.QIcon()
|
|
icon1.addPixmap(QtGui.QPixmap(_fromUtf8("img/exit.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
self.n_chiudi.setIcon(icon1)
|
|
self.n_chiudi.setFlat(True)
|
|
self.n_chiudi.hide()
|
|
|
|
# Bottone del refresh della lista usb
|
|
self.b_refresh = QtGui.QPushButton(self.centralwidget)
|
|
self.b_refresh.setGeometry(QtCore.QRect(435, 320, 26, 26))
|
|
self.b_refresh.setText(_fromUtf8(""))
|
|
icon2 = QtGui.QIcon()
|
|
icon2.addPixmap(QtGui.QPixmap(_fromUtf8("img/view-refresh.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
self.b_refresh.setIcon(icon2)
|
|
self.b_refresh.setIconSize(QtCore.QSize(24, 24))
|
|
self.b_refresh.setFlat(True)
|
|
self.b_refresh.setObjectName(_fromUtf8("pushButton_5"))
|
|
|
|
# comboBox con la lista delle periferiche usb
|
|
self.l_usb = QtGui.QComboBox(self.centralwidget)
|
|
self.l_usb.setEnabled(True)
|
|
self.l_usb.setGeometry(QtCore.QRect(158, 320, 271, 25))
|
|
self.l_usb.setEditable(False)
|
|
self.l_usb.setObjectName(_fromUtf8("comboBox"))
|
|
|
|
#inizializza la progressbar
|
|
self.p_installazione = QtGui.QProgressBar(self.centralwidget)
|
|
self.p_installazione.setGeometry(QtCore.QRect(10, 354, 480, 36))
|
|
self.p_installazione.setProperty("value", 0)
|
|
self.p_installazione.setObjectName("progressBar")
|
|
self.p_installazione.hide()
|
|
|
|
self.retranslateUi(MainWindow)
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
|
|
|
def retranslateUi(self, MainWindow):
|
|
self.b_avanti.setText(QtGui.QApplication.translate("MainWindow", "Avanti", None, QtGui.QApplication.UnicodeUTF8))
|
|
|