SHARE
TWEET

Untitled

a guest Apr 2nd, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Karte
  2. import Oprema
  3. import Radnici
  4. from Karte import godisnjaKarta
  5. from Oprema import oMain
  6. from Karte import mesecnaKarta
  7. from Karte import dnevnaKarta
  8. from Karte import studentskaGodisnja
  9. from Karte import suma
  10.  
  11.  
  12. def main():
  13.     print()
  14.     print("BAZEN")
  15.     print("_____________________________")
  16.     print()
  17.     if not login():
  18.         print("Niste se uneli dobar username ili password")
  19.         return main()
  20.     else:
  21.         print("Dobrodosli")
  22.        
  23.     komanda = menu()
  24.     if komanda != 'X':
  25.         if komanda == '1':
  26.             godisnjaKarta()
  27.         elif komanda == '2':
  28.             mesecnaKarta()
  29.         elif komanda == '3':
  30.             dnevnaKarta()
  31.         elif komanda == '4':
  32.             studentskaGodisnja()
  33.         elif komanda == '5':
  34.             oMain()
  35.         elif komanda == '6':
  36.             suma()
  37.         return main()
  38.        
  39.     print("KRAJ")  
  40. def menu():
  41.     printMenu()
  42.     command = input(">>")
  43.     while command.upper() not in ('1', '2', '3', '4', '5', '6', 'X'):
  44.         print("\nUneli sta pogresnu komandu. \n")
  45.         printMenu()
  46.         command = input(">>")
  47.     return command.upper()
  48.            
  49. def printMenu():
  50.     print("Izaberite opciju.")
  51.     print("1.) Izdavanje godisnje karte.")
  52.     print("2.) Izdavanje mesecne karte.")
  53.     print("3.) Izdavanje dnevne karte.")
  54.     print("4.) Studentski popust na godisnju kartu.")
  55.     print("5.) Pomocna oprema.")
  56.     print("6.) Zbir zarade od karata.")
  57.     print("X ) Izlaz")    
  58.    
  59.  
  60. def login():
  61.     username = input("Korisnicko ime: ")
  62.     password = input("Lozinka: ")
  63.     return Radnici.login(username, password)
  64. if __name__ == '__main__':
  65.     main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top