Beispiel #1
0
				message("Information", "Iniciando a tarefa. clique em OK.")
				elementary.install()
				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.install_dark()
				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.install()
				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.install_dark()
				message("Information", "Processo Concluído com Sucesso.")
			except Exception, e:
				message("Error", "Ocorreu o seguinte erro: %s" % e)
		elif row == "17":
			try:
				message("Information", "Iniciando a tarefa. clique em OK.")
				gshell_elementary.install()
				message("Information", "Processo Concluído com Sucesso.")
Beispiel #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)