Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Meni():
- def glavniMeni(self):
- while True:
- print "1. opcija"
- print "2. opcija"
- print "3. opcija"
- print "4.izlaz"
- izbor=raw_input("Unesite broj opcije...")
- if(izbor=="1"):
- #1.opcija
- elif(izbor=="2"):
- #2.opcija
- elif(izbor=="3"):
- #3.opcija
- elif(izbor=="4"):
- break
- else:
- print "Neodgovarajuci izbor"
- def meniMenadzera(self):
- while True:
- print "1. opcija"
- print "2. opcija"
- print "3. opcija"
- print "4.izlaz"
- izbor=raw_input("Unesite broj opcije...")
- if(izbor=="1"):
- #1.opcija
- elif(izbor=="2"):
- #2.opcija
- elif(izbor=="3"):
- #3.opcija
- elif(izbor=="4"):
- break
- else:
- print "Neodgovarajuci izbor"
- def meniRadnika(self):
- while True:
- print "1. opcija"
- print "2. opcija"
- print "3. opcija"
- print "4.izlaz"
- izbor=raw_input("Unesite broj opcije...")
- if(izbor=="1"):
- #1.opcija
- elif(izbor=="2"):
- #2.opcija
- elif(izbor=="3"):
- #3.opcija
- elif(izbor=="4"):
- break
- else:
- print "Neodgovarajuci izbor"
- def meniPotrazitelja(self):
- while True:
- print "1. opcija"
- print "2. opcija"
- print "3. opcija"
- print "4.izlaz"
- izbor=raw_input("Unesite broj opcije...")
- if(izbor=="1"):
- #1.opcija
- elif(izbor=="2"):
- #2.opcija
- elif(izbor=="3"):
- #3.opcija
- elif(izbor=="4"):
- break
- else:
- print "Neodgovarajuci izbor"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement