-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMenus.py
More file actions
35 lines (30 loc) · 942 Bytes
/
Menus.py
File metadata and controls
35 lines (30 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
################################################################################
# File Name: Menus.py
# Author: Debbie Heisler
# Date: April 4, 2014
# Description:
# This file contains all the menus needed for the contact manager.
# Each function will print out a menu.
################################################################################
""" Functions to print the various menus to a screen """
def printMainMenu():
print()
print("1. Print to screen")
print("2. Search")
print("3. Add contact")
print("4. Delete contact")
print("5. Write to file")
print("6. Quit")
print()
def printSearchMenu():
print()
print("0. First Name")
print("1. Last Name")
print("2. Email")
print()
def printSearchCriteria(field):
print()
print("What string in the field " + field + " do you want to seach for?")
def printInvalidOption(command):
print()
print("", command , " is not a valid option. Please select again.")