From fa54583f2ca560bf67089016e06f44a3ec306c5c Mon Sep 17 00:00:00 2001 From: Filippo Bedendo Bordon Date: Sun, 23 Oct 2011 16:38:52 +0200 Subject: [PATCH] Aumentata la width di l_dimensione e correti bug vari --- gui.py | 2 +- gui.pyc | Bin 4600 -> 4589 bytes usbinstall.py | 27 ++++++++++++++------------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/gui.py b/gui.py index 6b549e3..25842e4 100644 --- a/gui.py +++ b/gui.py @@ -31,7 +31,7 @@ class Ui_MainWindow(object): # Label della descrizione self.l_descrizione = QtGui.QLabel(self.centralwidget) - self.l_descrizione.setGeometry(QtCore.QRect(10, 317, 201, 31)) + self.l_descrizione.setGeometry(QtCore.QRect(10, 317, 251, 31)) self.l_descrizione.setText(_fromUtf8("")) self.l_descrizione.setObjectName(_fromUtf8("l_descrizione")) diff --git a/gui.pyc b/gui.pyc index b1bc2093b0cfcfadb8f7dc8baa1dd2ac584532e1..43bfc1a8e289031cef1f85177979c3aa9c968a59 100644 GIT binary patch literal 4589 zcmbVQ&2t<_6@RlU$+9C^ifzf?AF&;K?O0OmIEe#}W64;7szmnAS|v~wOwDe$q+ZX? zEHk~floDLbACL=IPMpbsqKZF(;zU(a#f^f$0d5@N_g>GeW*5l>T(hlyuV26SdmsJf z>fa}iOkMc(N{jM;qxky}zwF0o6h4n4qK-%F9(5|TULkL1nzTplDz!&weU#SXGc=;d z==l*!m&o%xRiR%HkHjARP*q7Eq79GK2yDYUBYbUuGG+wbS=}FqnVjqM6!tK?-rIBa7Hzw8Ve4IkkaiL(_B z6nkAIzajp#*eP~|{SxR6nA=6*U;^_zdL^I7EKJ8&rB?_q(^U}}DMaiDwMTg_roj1N zjNA5Dp=z`&cPJmrMaP94r}km8N2vVl&keC=WnsXi6!>=(hDJCWd zO&lQwTN7mykl4orxX#36*~HO7FQ$Z?8Z>c~)D)@dvI$5`6G!VPwcliY;v2Zf3hwbT z*BKT;mgR{j1`W>$Ia4xxjMQ;bCrHhd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Fe8NT4JZNG-Y(AFBc^+_xU~?16U4;_81dKl?pC!rv!zx1e$RXw-g$3&t`=i1w~5 z=HIxhnBSnW;JZ6bOUE`1qZdYPXlq#Be9clfSxRnWK{ISUGaoYZFFbs{m>LC2XRXwH zZjxA=pR>R>+#F|tAvCyQY4eg+Qu2*zfBJC)HkP0Zg|^Z_?~ zpUO_~r1r+VGGUZ#%>JUQGYfljop=K$Q;xA2Z0e|E{?4)sJoTU4J5>zZVBJL8{GLZH z@W>f78QzaE{tUPiX8_Qt|jIlJoHx{Vh!0C_n<~^87ofz zk)d&jnfu)67qh8ePj$8_CRn`F%{CXi)+TZAuK6uXPGXJ(y_K|^$zrl)nr!6?#>DC8 zVbs+qHIVFDCrvh>F5Xpu40&aj>rZ+?^O^QJkUsnE9v(kw zC9yaiD)q!{wZo1es^@)PD9cIO4kKGd_wo9A0azxoMu6vjgM-8`fV%WJ6c|~GLMuz= zY1(zctuydP%2=Nx>hnWH>_gbu^rx8rI`et0Z5pNhqfBvaKd3MK9jtPBYK5|86w@Kr(W%{*6yl|qhH-{?=oRBq^QpF>D?Q5&B8V|6q7fxF zTioVqtZ_Ug3Ym`9{T^jFX-skFR9kr%QL`x$N`1TCDu9Df2(V%$N9O z>?(ORUL#WRK@g*4fCE~MwUX1de5hLE=UoF>Uo8t0& zvR$`#WJ4?Mg$= (0,41,0): # Variabili globali passo = 1 +p = "" # Processo del file .sh ext = "" # Vedi apri_file() path_Boot = "" # Percorso file.cpio.gz path_Iso = "" # Percorso file.iso @@ -202,22 +203,20 @@ def aggiorna_oggetti(immagine, titolo, descrizione): ui.b_indietro.setText(QtGui.QApplication.translate("Dialog", "Indietro", None, QtGui.QApplication.UnicodeUTF8)) visualizza_scegli_file() # Chiudi la nuovola dell'help al cambio di passo - chiudi_nuvola() + chiudi_nuvola() elif passo == 3: visualizza_lista_usb() lista_usb() # Chiudi la nuovola dell'help al cambio di passo - chiudi_nuvola() + chiudi_nuvola() + elif passo == 4: + chiudi_nuvola() ui.t_file.setText(QtGui.QApplication.translate("Dialog", "", None, QtGui.QApplication.UnicodeUTF8)) ui.i_back.setPixmap(QtGui.QPixmap(immagine)) Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", titolo, None, QtGui.QApplication.UnicodeUTF8)) ui.l_descrizione.setText(QtGui.QApplication.translate("Dialog", descrizione, None, QtGui.QApplication.UnicodeUTF8)) - -## Funzione principale, installa openmamba sull'usb scelto -def installazione_start(): - a=0 ## Setta la variabili globali sel_usb_* con l'usb scelto def seleziona_usb(i): @@ -242,8 +241,7 @@ def passo3(): def passo4(): - from subprocess import Popen - + global p aggiorna_oggetti("img/back4.png", "Passo 4/4 - installazione di openmamba su usb", "Installazione in corso...") # Nasconde gli oggetti superflui: @@ -287,14 +285,17 @@ class setta_dbus(dbus.service.Object): mainloop.quit() app.exit(0) - +# Termina lo scipt e dbus insieme alla finestra +def closeEvent(form, event): + installazione_terminata() def installazione_terminata(): + global p print "Installazione terminata" msg = QtGui.QMessageBox.information(None, "Informazione", "Installazione terminata correttamente") - - mainloop.quit() + p.terminate() + mainloop.quit() app.exit(0) # Inizializza la parte grafica @@ -308,7 +309,7 @@ def run(): assegna_eventi() passo1() - Dialog.show() # mostra il dialog precedentemente creato + Dialog.show() # Mostra il dialog precedentemente creato return app.exec_()