<reponame>munnep/begin_to_code_with_python
# Loads a user interface class and a storage manager class
# and then uses these to create an application

# Get the module containing the user interface class
# from the ShellUI package
from ShellUI import FashionShopShell
# Get the user interface manager class from this module
ui = FashionShopShell.FashionShopShell

# Get the module containing the data storage class
# from the Storage package
from Storage import FashionShop
# Get the data manager class from the storage module
shop = FashionShop.FashionShop

# Now create an app from the user interface object
# Give it the filename and the data manager class as
# parameters
app = ui(filename='fashionshop.pickle', storage_class=shop)

# Now call the main_menu function on the app
app.main_menu()

