def term(): while True: ux() menu() Tool = raw_input('''\033[1;36m ##> \033[01;37m''') if Tool == "0": all() elif Tool == "1": tmn() elif Tool == "2": cate() elif Tool == "3": tos() elif Tool == "4": Upt() elif Tool == "5": about() elif Tool == "rm -T" or Tool == "Uninstall Tool-X" or Tool == "uninstall tool-x" or Tool == "uninstall Tool-X" or Tool == "Uninstall tool-x": if system == "ubuntu": os.system("cd " + home + " && sudo rm -rf .Tool-X") os.system("cd " + bpath + " && sudo rm -rf Tool-X toolx") else: os.system("cd " + home + " && rm -rf .Tool-X") os.system("cd " + bpath + " && rm -rf Tool-X toolx") exit() elif Tool == "exit": exit() elif Tool == "x" or Tool == "X": Toolo = raw_input( "\033[1;33m Do you want to Exit ? [Y/n] > \033[01;33m") if Toolo == "N" or Toolo == "n": term() elif Toolo == "Y" or Toolo == "y": exit() else: print("\033[01;34m\007\n error : \033[01;37m\'" + Toolo + "\' \033[01;31minvalid option !!!") sleep(1) term() else: print("\033[01;34m\007\n error : \033[01;37m\'" + Tool + "\' \033[01;31minvalid option !!!") sleep(1) term()
def ubu(): while True: ux() menu() Tool = raw_input('''\033[1;36m ##> \033[01;37m''') if Tool == "0": all() elif Tool == "1": tmn() elif Tool == "2": cate() elif Tool == "3": Upt() elif Tool == "4": about() elif Tool == "rm -T" or Tool == "Uninstall Tool-X" or Tool == "uninstall tool-x" or Tool == "uninstall Tool-X" or Tool == "Uninstall tool-x": os.system("python2 .Uni.aex") exit() elif Tool == "exit": exit() elif Tool == "x" or Tool == "X": Toolo = raw_input( "\033[1;33m Do you want to Exit ? [Y/n] > \033[1;m") if Toolo == "N" or Toolo == "n": ubu() elif Toolo == "Y" or Toolo == "y": exit() else: print("\033[01;34m\007\n error : \033[01;37m\'" + Toolo + "\' \033[01;31minvalid option !!!") sleep(1) ubu() else: print("\033[01;34m\007\n error : \033[01;37m\'" + Tool + "\' \033[01;31minvalid option !!!") sleep(1) ubu()
def term(): while True: ux() menu() Tool = raw_input('''\033[1;36m ##> \033[01;37m''') if Tool == "0": all() elif Tool == "1": tmn() elif Tool == "2": cate() elif Tool == "3": tos() elif Tool == "4": Upt() elif Tool == "5": about() elif Tool == "rm -T" or Tool == "Uninstall Tool-X" or Tool == "uninstall tool-x" or Tool == "uninstall Tool-X" or Tool == "Uninstall tool-x": os.system("python2 .Uni.aex") exit() elif Tool == "exit": exit() elif Tool == "x" or Tool=="X": Toolo = raw_input("\033[1;33m Do you want to Exit ? [Y/n] > \033[01;33m") if Toolo == "N" or Toolo == "n": term() elif Toolo == "Y" or Toolo == "y": exit() else: print ("\033[01;34m\007\n error : \033[01;37m\'"+Toolo+"\' \033[01;31minvalid option !!!") sleep(1) term() else: print ("\033[01;34m\007\n error : \033[01;37m\'"+Tool+"\' \033[01;31minvalid option !!!") sleep(1) term()