From e1b0503e821307472c2ef145ec5d5aa792aa86ed Mon Sep 17 00:00:00 2001 From: nanatech Date: Sun, 16 Jul 2017 00:53:33 -0700 Subject: [PATCH 1/2] Movie trailer files created and modified --- entertainment_center.py | 34 ++++++++++ fresh_tomatoes.html | 143 ++++++++++++++++++++++++++++++++++++++++ fresh_tomatoes.py | 10 ++- fresh_tomatoes.pyc | Bin 0 -> 5647 bytes media.py | 14 ++++ media.pyc | Bin 0 -> 1178 bytes pics/It.JPG | Bin 0 -> 36271 bytes pics/PAF.jpg | Bin 0 -> 1597842 bytes pics/homeAlone.jpg | Bin 0 -> 44795 bytes pics/scream.jpg | Bin 0 -> 29576 bytes pics/thinkLAM.jpg | Bin 0 -> 168237 bytes pics/toystory.jpeg | Bin 0 -> 59849 bytes 12 files changed, 198 insertions(+), 3 deletions(-) create mode 100644 entertainment_center.py create mode 100644 fresh_tomatoes.html create mode 100644 fresh_tomatoes.pyc create mode 100644 media.py create mode 100644 media.pyc create mode 100644 pics/It.JPG create mode 100644 pics/PAF.jpg create mode 100644 pics/homeAlone.jpg create mode 100644 pics/scream.jpg create mode 100644 pics/thinkLAM.jpg create mode 100644 pics/toystory.jpeg diff --git a/entertainment_center.py b/entertainment_center.py new file mode 100644 index 000000000..150391463 --- /dev/null +++ b/entertainment_center.py @@ -0,0 +1,34 @@ +import media +import fresh_tomatoes + +"""The entertainment center module is used to initalize instance of the Movie class""" + + +toy_story = media.Movie("Toy Story", + "A story of a boy and hist toys that come to life", + "pics//toystory.jpeg","https://youtu.be/KYz2wyBy3kc") + +home_alone = media.Movie("Home Alone", + "An eight-year-old is accidentally left home alone by his family", + "pics//homeAlone.jpg", "https://www.youtube.com/watch?v=CK2Btk6Ybm0") + +princess_frog = media.Movie("Princess & The Frog", + "A story of a disnet princess and a prince frog", + "pics//PAF.jpg", "https://www.youtube.com/watch?v=uQBy6jqbmlU") +it = media.Movie("IT", "Stephen Kings horror Classic", + "pics//It.JPG", "https://www.youtube.com/watch?v=FnCdOQsX5kc") +think_like_a_man = media.Movie("Think Like A Man", + "Based on Steve Harvey's best selling book 'Think Like A Man' ", + "pics//thinkLAM.jpg", "https://www.youtube.com/watch?v=F7VmU8aHAtw") +scream = media.Movie("Scream","A horror classic.","pics//scream.jpg", + "https://www.youtube.com/watch?v=AWm_mkbdpCA") + +#Create an array of the movie objects created +movies = [toy_story, home_alone, princess_frog, it, think_like_a_man, scream] + +# This method passes the movie array as an argument to the +# open_movies_page() method. This method is called from the +# fresh_tomatoes module which which will create a HTML file +# that will display all movies listed in the movie array +fresh_tomatoes.open_movies_page(movies) + diff --git a/fresh_tomatoes.html b/fresh_tomatoes.html new file mode 100644 index 000000000..7cd2e38de --- /dev/null +++ b/fresh_tomatoes.html @@ -0,0 +1,143 @@ + + + + + + Najah's Favorite Movies + + + + + + + + + + + + + + + +
+ +
+
+ +
+ +

Toy Story

+
+ +
+ +

Home Alone

+
+ +
+ +

Princess & The Frog

+
+ +
+ +

IT

+
+ +
+ +

Think Like A Man

+
+ +
+ +

Scream

+
+ +
+ + diff --git a/fresh_tomatoes.py b/fresh_tomatoes.py index 5cd75599c..23d164fca 100644 --- a/fresh_tomatoes.py +++ b/fresh_tomatoes.py @@ -9,7 +9,7 @@ - Fresh Tomatoes! + Najah's Favorite Movies @@ -19,6 +19,7 @@