Exemplo n.º 1
0
				message("Information", "Iniciando a tarefa. clique em OK.")
				elementary.remove()
				message("Information", "Processo Concluído com Sucesso.")
			except Exception, e:
				message("Error", "Ocorreu o seguinte erro: %s" % e)
		elif row == "14":
			try:
				message("Information", "Iniciando a tarefa. clique em OK.")
				elementary.remove()
				message("Information", "Processo Concluído com Sucesso.")
			except Exception, e:
				message("Error", "Ocorreu o seguinte erro: %s" % e)
		elif row == "15":
			try:
				message("Information", "Iniciando a tarefa. clique em OK.")
				faenza.remove()
				message("Information", "Processo Concluído com Sucesso.")
			except Exception, e:
				message("Error", "Ocorreu o seguinte erro: %s" % e)
		elif row == "16":
			try:
				message("Information", "Iniciando a tarefa. clique em OK.")
				faenza.remove()
				message("Information", "Processo Concluído com Sucesso.")
			except Exception, e:
				message("Error", "Ocorreu o seguinte erro: %s" % e)
	
	def description ():
		row = str(self.listWidget.currentRow())
		if row == "0":
			self.textEdit.setText(QtGui.QApplication.translate("Neutrino Project", nvidia.NVIDIA_DESCRIPTION, None, QtGui.QApplication.UnicodeUTF8))
Exemplo n.º 2
0
 def exec_tasks():
     row = 0
     message("Information", "Iniciando a tarefa. clique em OK.")
     try:
         for item in tasks:
             if item == "nvidia":
                 row = row + 1
                 nvidia.install("default")
             elif item == "nvidia_173":
                 row = row + 1
                 nvidia.install("173")
             elif item == "nvidia_96":
                 row = row + 1
                 nvidia.install("96")
             elif item == "amd":
                 row = row + 1
                 amd.install()
             elif item == "codecs":
                 row = row + 1
                 codecs.install()
             elif item == "loffice":
                 row = row + 1
                 libreoffice.install()
             elif item == "fonts":
                 row = row + 1
                 fonts.install()
             elif item == "root":
                 row = row + 1
                 Ssudo.install()
             elif item == "opendjk":
                 row = row + 1
                 java.install("openjdk")
             elif item == "opendjk_rm":
                 row = row + 1
                 java.remove("openjdk")
             elif item == "ojava":
                 row = row + 1
                 java.install("java")
             elif item == "gnash":
                 row = row + 1
                 flash.install("gnash")
             elif item == "gnash_rm":
                 row = row + 1
                 flash.remove("gnash")
             elif item == "flash":
                 row = row + 1
                 flash.install("flash")
             elif item == "flash_rm":
                 row = row + 1
                 flash.remove("flash")
             elif item == "chromium":
                 row = row + 1
                 chromium.install()
             elif item == "chromium_rm":
                 row = row + 1
                 chromium.remove()
             elif item == "elementary":
                 row = row + 1
                 elementary.install()
             elif item == "elementary_rm":
                 row = row + 1
                 elementary.remove()
             elif item == "faenza":
                 row = row + 1
                 faenza.install()
             elif item == "faenza_rm":
                 row = row + 1
                 faenza.remove()
             else:
                 pass
     except Exception, e:
         message("Error", "Ocorreu o seguinte erro: %s" % e)