Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if __name__ == "__main__":
- # Inicializar programa
- command = ''
- # Mostrar menu
- print_menu()
- # Loop principal
- while command != 'sair':
- #try:
- command = raw_input('> ').strip()
- if command.startswith("abrir"):
- carregar_PPM(command.split(" ")[1])
- elif command.startswith("guardar"):
- guardar_PPM(command.split(" ")[1])
- elif command.startswith("ver"):
- criar_imagem()
- else:
- if command.strip() != "sair": print 'Comando nao reconhecido!'
- #except:
- #print "erro
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement