top of page

A Test on Music and Intuition
Source Code (main.py)

from tkinter import *
import pygame

"""
Copyright 2023 Terence Im (born Tae Joon Kim)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

class ATestOnMusicAndIntuition:
    def __init__(self, root):
        self.root = root
        self.root.title("A Test on Music and Intuition")
        self.root.configure(bg="#FFD8A1")
        self.root.geometry("1900x900")
        
        #colors
        
        self.bgcolor="#FFD8A1"
        self.text_color= "#757575"
        
        #booleans and conditions which are to be reset upon returning to the main menu
        
        self.has_done_first_action = False
        self.finished_reading = False
        self.side_menu_count = 0
        
        
        self.has_read_the_sacrifices_of_an_artist = False
        self.has_read_why_do_we_love_music = False
        self.has_read_be_carefree_in_your_creativity = False
        self.has_read_many_instruments_one_mind = False
        self.has_read_julians_journal_entry = False
        
        #story GUI
        
        #attributes
        self.story_text_size=16
        self.story_text_x=3
        self.story_text_y=3
        self.story_text_wrap = 920
        
        self.continue_btn_y = 70
        
        self.choices_frame_padx=20
        self.choices_frame_pady=20
        
        self.choices_btn_padx=0
        self.choices_btn_pady=10
        
        
        self.story_text_frame = LabelFrame(width=1000, height=1200, bg=self.bgcolor, bd=0)
        self.text_display = Label(self.story_text_frame, font=("Helvetica", self.story_text_size))
        
        self.choices_frame = LabelFrame(width=1000, height=370, bg=self.bgcolor, bd=0)
        self.be_carefree_close_book_frame = LabelFrame(width=1000, height=370, bg=self.bgcolor, bd=0)
        self.dialogue_choices_frame = LabelFrame(width=1000, height=1000, bg=self.bgcolor, bd=0)
        
        #player's name
        """self.name_entry_field = Entry(width=50, fg=self.text_color)
        self.main_character_name=self.name_entry_field.get()
        """

        #STORY TEXT
                
        #intro text
        
        self.get_name = Button(self.choices_frame, bd=0, bg=self.bgcolor, fg=self.text_color,font=("Helvetica", self.story_text_size), text="Continue", command=self.GetName)
        self.get_name2 = Button(self.choices_frame, bd=0, bg=self.bgcolor, fg=self.text_color,font=("Helvetica", self.story_text_size), text="Continue", command=self.Scene2GetName)
        self.get_name3 = Button(self.choices_frame, bd=0, bg=self.bgcolor, fg=self.text_color,font=("Helvetica", self.story_text_size), text="Continue", command=self.Scene3GetName)
         
    
        self.name_entry_text=Label(self.story_text_frame, font=("Helvetica", self.story_text_size), text="Enter your character's name.", bg=self.bgcolor, fg=self.text_color, bd=0)
        
        
        #story pages with character's name
        
        
        self.intro_pg1_p1= "All your life, you have dreamt of mastering the art of music. When you were a child, you first heard the sounds of a Felzancian piano, and in those chords and melodies, you felt as if you'd come to understand the bliss of ancient sages whose poetry and philosophy celebrated the gift of music which the heavens gifted our world. When you first picked up the piano, a dormant part of your consciousness realized, I am alive, and only now am I born. You were so inspired that you just had to sing and write down your first lyrics:\n\n"
        self.intro_pg1_p2="\nBefore life, there was nothingness,\nThen, I was put into a body,\nBut, now that I know the bliss of the piano can I say,\nI am born into this world."
        self.intro_pg1 = self.intro_pg1_p1 + self.intro_pg1_p2
        self.intro_pg2="As a teenager, you sought to master every instrument from the guitar and Meilasian bells, and you'd lost some focus on your piano playing. But once you fell in love for the first time, you knew that the Felzancian piano, which had a cosmic sound unlike the pianos generated from the alchemy of other nations, was the greatest medium through which you could express your love for another person. Your love for the Felzancian piano, which in other universes might be called a \"synthesizer,\" only strenghthened after your first heartbreak, because you understood that in this one instrument, this gift of the gods, you could feel emotions which allowed you to defy any anxieties which might be attached to thoughts of death or the other heartbreaks that are inherent in living in this world of shifting tides and troubles."
        self.intro_pg3_p1="At the age of fourteen, you sought out the tutelage of the great master, Eilutari, the great composer and philosopher who has been lauded by the people of your island, Felzance, as \"The Bridge Between Music and Philosophy.\" You thought, He must become my teacher, because in him, I see the greatest passion for music among the people of my island in this age of dulled creativity. You were always deeply inspired by this one passage from his book, \"Ten thousand dreams, One Soul:\" "
        self.intro_pg3_p2="\"An artist has a connection with thousands if not millions - no - billions of creative possibilities which arise from the deepest chambers of the mind. But there is only one key to it all: a willingness to stay true to one's dream and to withstand the obliteration of the body so as to unleash the apex of the human mind's potential brilliance.\""
        self.intro_pg3 = self.intro_pg3_p1 + self.intro_pg3_p2
        
        self.intro_pg4 = "You can never forget the day you went to Eilutari's School of Music and Philosophy. In spite of your friends doubting your ability to win his favor, for he was known to rarely accept students, you dared to knock on his school's front door and introduce yourself to him. As arrogant as you might have sounded in your declaration of future greatness, Eilutari simply laughed and invited you to display your talents in one of his studio rooms.\n\nYou played your first composition, Dreams of Eternal Happiness, and sang your lyrics to Eilutari (rather nervously.)"
        self.intro_pg5_stanza1 = "I've had dreams of better worlds than this,\nI don't know why, but I just can't stop minding them,\nNothing in this world can help me stay grounded to this world\nExcept love, music and dreams of better days,\nLove, music and dreams of better worlds,\nLove, music and dreams of better ways to master life,\n\n"
        self.intro_pg5_stanza2 = "But never mind, I'll withstand the test of time,\nWithin my mind are ten thousand rhymes\nThat yearn to be unleashed into this world,\nI wish to bring something good into this world \nWhich heals others' hearts,\nThis is the dream of my music!"
        self.intro_pg5 = self.intro_pg5_stanza1 + self.intro_pg5_stanza2
    
        
        self.intro_pg6_choice1 = "1. I write music because I see in it the potential to connect with the world. In this medium, I can express these mysterious thoughts I've had about this world we live in through various instruments, and in each instrument, I can express my thoughts through a different voice. Through music, I also hope to make the world a better place, heal hearts and bring clarity to troubled hearts."
        self.intro_pg6_choice2 = "2. I don't have a specific reason as to why I write music. In the beginning, there were certain motivations, a magic that words cannot possibly put sense to. When I listen to music or play the piano, the chords and melodies take me to anotherw orld. Maybe you can say that music helps me daydream."
            
       
        self.intro_pg7 = "After this first encounter, Eilutari determined you were worthy of his teaching. For four years, he'd taught you the subtleties of music, not just within the realms of music theory and technique but also the inner wars which accompany its journey. Every day, month and year, you were restless in your learning, but lately, Eilutari's noted how you've been slacking. He's noticed that there has been a weakening of your resolve and determination on your journey, and so, he's taken you off the roster of artists performing at his festival, The Festival of New and Ancient Sounds."
        
        self.intro_pg8 = "In order to be placed back on the roster, you must prove yourself worthy by taking a test which will involve telepathy and deep explorations of your psyche. \"Once placed under my telepathic trance,\" Eilutari said, \"There will be no going back. You will face your fears on that day, and you might hate me for it in the moment, but afterwards, you will be more than glad to have been relieved of whatever inner resistance attempts to ruin your clarity of mind and resolve.\""
    
        
        
        #Julian's Room
        
        self.current_julians_room_desk = ""
        self.julians_room_desk = "It is the morning of Eilutari's test and anxieties about failing to prove yourself to him immediately come to your mind. Before heading out to his school, you immediately walk to your desk where your study materials are already there. On the desk are four books written by composer-philosophers of ancient times who have shared their wisdom. You feel deeply inspired by the care that these legends had for future generations such as yours and their desire to realize the cultivation of a nation which is intertwined with creativity.\n\nYou don't have too much time to read, so you decide to just read through the passage that you last bookmarked."
        self.julians_room_desk2 = "On the desk are four books written by composer-philosophers of ancient times who have shared their wisdom. You feel deeply inspired by the care that these legends had for future generations such as yours and their desire to realize the cultivation of a nation which is intertwined with creativity.\n\nYou don't have too much time to read, so you decide to just read through the passage that you last bookmarked."
        
        self.julians_room_desk_choice1 = "1. Read The Sacrifices of an Artist (Ch. 3, pg. 49)"
        self.julians_room_desk_choice2 = "2. Read Why Do We Love Music? (Ch. 5 pg. 88)"
        self.julians_room_desk_choice3 = "3. Read Be Carefree in Your Creativity (Ch. 9, pg. 205)"
        self.julians_room_desk_choice4 = "4. Read Many Instruments, One Mind (Ch. 1, pg. 18)"
        self.julians_room_desk_choice5 = "5. Read your journal (pg. 120, date: Day 5 of the Olunarian Cycle)"
        self.julians_room_desk_choice6 = "6. Look around your room"
        self.julians_room_desk_choice7_text = "7. Finish up your morning routine and go seize the day!"
        
        
        

        
        #Books for Julian's Studies
        
        self.the_sacrifices_of_an_artist = "In every human being are potentially endless mountains of creative innovation and brilliance. But only few are chosen by nature to be aware of the hidden realms slumbering deep within the collective human mind. Still fewer are willing to endure the trials and tribulations of the artist. And still fewer are ready to sacrifice themselves for their art.\n\nWhile the oceans of possibilities which compell an artist to create day to day may feel overwhelming, there is a simple way to harmonize with these oceanic tides. Silence the mind and ride along these waves.\n\nYou are the waves. You are the ocean. Why feel so burdened?"
        
        self.why_do_we_love_music = "To ask the question, Why do we love music, is no different than asking, why do we as human beings have the yearning to love, to hate or to express our innermost feelings? There is something within music and within our own minds which possess a synchronous relationship which can be said to be like the manifestation of the universe's yearning to realize cosmic bliss.\n\nWhy do you love music? Surely, it isn't because you consider it a good way to pass the time. No, you feel that there is something within melodies, soulful lyrics, chordal harmony and exciting rhythms that make you feel deeply connected with both the universe outside yourself and the universe within you."
        
        self.be_carefree_in_your_creativity_pg1 = "I suppose the best way to illustrate my point is by simply sharing with you a poem that I wrote when I was a child. I was in the mountains outside the city, having wished to go by myself to the legendary shrine where the famous composer, Turilion, claimed to have heard a song in his vision granted to him by Naleirisa, Goddess of Joyful Melodies. When I went to the shrine, I didn't receive any vision and at first felt myself to be unworthy of Naleirisa's gifts. But, I sat down and quietted my mind in meditation. Then, I wrote this poem:"
        
        self.be_carefree_in_your_creativity_pg2 = "\n\nIf the universe will not grant me answers,\nStill, I will continue to expand my mind,\nThere is not enough time to waste my emotions\nOn spoiled thoughts,\nI'd rather be carefree like a feather,\nGently falling."
        
        self.be_carefree_in_your_creativity = self.be_carefree_in_your_creativity_pg1 + self.be_carefree_in_your_creativity_pg2
                 
        self.many_instruments_one_mind = "When you look at each instrument which has been forged by the innovative brilliance of our species, you can see a reflection of yourself immediately: countless possibilities of artistic brilliance reside within your mind for you are a fragment of humanity, and all of humanity is nothing without its fragments.\n\nAnd so, when you sit alone in your solitude and feel longing to be with another, remember this: your instrument is a bridge to unbelievably incredible sounds that can immediately mute your discontent. All you have to do is appreciate this and play your heart out."
        
        self.julians_journal_entry = "At first, I was angry that Eilutari decided to take me off the concert for The Festival of New and Ancient Sounds, but after patient self-reflection, I've come to realize that I am so fortunate to have a teacher such as him. He does not care to spoil me with instant gratification. I must not forget: rarely does Eilutari ever take students. For him, the art of teaching is not a business but a sacred practice. I must not dishonor him by refusing to sharpen my mind. I must become worthy again of his tutelage and spiritual guidance."
        
        
        #look around the room
        
        self.look_around_julians_room = "You look around your room and feel a sense of deep appreciation for your life. Out there in the world, countless must endure terrible trials and tribulations. But, here, you can know peace in your private temple of music and philosophy. Here is where all the magic of your creativity happens (at least, when you have a clear and focused mind.)"
        
        self.look_around_julians_room_choice1 = "1. Read Eilutari's letter to you which you hung up on your wall."
        
        self.look_around_julians_room_choice2 = "2. Look at the painting your friend, Susannah, gifted to you for your sixteenth birthday."
        
        self.look_around_julians_room_choice3 = "3. Play your piano."
        
        self.look_around_julians_room_choice4 = "4. Go to the meditation corner and try to empty your mind."
        
        self.look_around_julians_room_choice5 = "5. Walk to your balcony"
        
        self.look_around_julians_room_choice6 = "6. Go back to your desk."
        
        #results of looking around the room
                
        self.susannahs_painting = "Susannah's painting never fails to brighten your day. On the framed canvas is a colorfully painted image of a monk sitting by a tree in the forest. He is levitating. Smiling radiantly, he closes his eyes as he focuses on playing the guitar. \nMusical notes and colorful hazes of light encircle him, forming an almost fiery ring which perfectly represents his bliss. You think, I want to remember this feeling again. I don't ever want to forget it again!"
        
        self.dreams_of_eternal_happiness = "You sit down to play your piano which has two keyboards and several settings to change the sound of the instrument through your telepathic command. The piano is a gift from your friend, Yutaris, who is studying to become an engineer of music technology. Using telepathy, you command the music box on your desk to navigate to the directory where the file for your song's backtrack is stored. You decide to play, \"Dreams of Eternal Happiness,\" since it is the song you believe would best motivate you to prepare for today's test. After all, it was the song that began your life in music composition.\n\nJoy and a stillness of mind radiate within you as you play."
              
        self.meditation_corner = "You go to your meditation corner and sit down on a cushion mat. Closing your eyes, you breathe deeply and try your best to empty your mind. Inevitably, thoughts and concerns arise, but with the passing of time, they burden you less, and you feel some semblance of reacquataince with the bliss that is silence. Opening your eyes, you feel better prepared for the trial of the day."
        
        self.balcony = "You go out to the balcony, stretch out your arms and appreciate this wonderful view of your city below the hill. Whenever you look out into this glorious view, you can't help but deeply appreciate the long history of your people who have passionately intertwined themselves with the magic of music and creativity with the kind of devotion which might bring tears to the heavens. You enjoy this view for some time, reflect on the upcoming test of the day and then go back inside."
        
        #the test
        
        #pg1 is in getName()
        
        self.the_test_pg1_choice1 = "1. I must admit, Eilutari, that I still feel nervous about today's test. But, after studying this morning, I understand that my worries are a mere illusion of the mind. Whatever challenge falls upon me today, I will meet it with the same conviction that has carried me through all the good and bad days of my life in music."
        self.the_test_pg1_choice2 = "2. I have to admit, Eilutari... I am not meant for a life in music. Not anymore. There was a time when both my mind and body felt wholly intertwined with my path in life, but now, a mysterious shadow looms over me, and I... want to..."
        
        #res1 is in getName()
        self.the_test_pg1_res2 = "Eilutari: No, you will not give up. I won't let you! When I became your teacher, I made a promise to myself that I will not let this boy be defeated by the darkness of the world nor by the shadow of the human heart. I vowed to myself that I would help you unlock the full potential of your gifts and never see the day that you say the words, \"I give up.\" When I was tempted to quit at your age, it wasn't because of music, but because of the difficulties of life and the shadow of the human spirit. Now, enough talk of giving up! Let's begin! Now!"
        
        self.the_test_pg2 = "You and Eilutari take seats at the center of the classroom. He takes a medallion out from his pocket. On it is the image of a tree whose branches stretch out on the medallion's edges, forming into black and white paint brush strokes. Eilutari closes his eyes, as do you. Your heart is beating nervously. Eilutari: You have the choice of entering into one of three dream states which will take you into a different world inside your mind, but all of them will test you just the same."
        self.the_test_pg3 = "Eilutari: You can enter into the Desert of Forgetfulness where you will be alone for ten minutes, ten minutes which will connect you with the timeless. The second world, the Palace of Empty Promises, will cause you to face your desires for the future. In the third world, the Temple of Ancient Music, you will be surrounded by ancient music technology whose other-worldly sounds will cause you to feel connected with the history of ancient artists who will help guide you through your inner turmoil.\n\nWhich world do you wish to dream of for your test?"
        self.the_test_pg4 = "Eilutari: Very well. Now, relax and face whatever internal conflict presents itself in your test. In that moment, you will have to come to face with the fact that there are other forces in your mind which are outside of your control. After the test, you will realize that whatever it is that you are destined to do is, tragically enough, beyond your control, for the deepest motivations of your heart extend beyond your conscious understanding. If you can accept this truth, then, it will be much easier to accept who you are for all your noble and dark qualities, for these are elements of nature itself."
        
        #the dreams
        
        self.the_desert_of_forgetfulness_pg1 = "Just seconds after Eilutari begins chanting, you find yourself in the middle of the desert. A terrible loneliness overwhelms you, yet somehow, you cannot help but feel enthralled by the sky and the ever-present magnificence of the sun. Still, you begin to sweat, and you're not sure whether or not you should start walking or wait for something to happen. After all, there's nowhere to go.\n\nYou begin to hear the sound of the piano echoing from all directions along with the Felzancian piano. Soon, the sound transforms from one instrument to another; from the lyre to the bells of a long forgotten world. As soon as a bell plays a heavy and low frequency C note, you feel your head begin to vibrate. Soon, you see a mirror image of yourself appear before you."
        #pg2 in getName()
        self.the_desert_of_forgetfulness_pg3 = "As soon as your hands meet, you forget everything about your identity and the world, and soon, the desert transforms into a vortex of water which surrounds you. But then, the water quickly disappears and the two of you begin to float upwards in the midst of an unbelievably beautiful world filled with flying houses, transforming geometrical shapes of light and floating crystal structures. As you two continue float, you begin to hear something... words which feel to be simultaneously coming from outside and inside of yourself. Are these the words to your next song perhaps?\n\nYour better half: Just close your eyes and listen. Don't resist the music that is yearning to come outside of you."
        self.the_desert_of_forgetfulness_pg4 = "Music was once like a perfect dream,\nBut then, I started to fear the world\nWith the passing of time,\nAnd, I could not stand facing the desert of my heart,\nThe desert which stretches out for what feels like eternity,\nI want to live forever\nAnd never return to the timeless,\nBut, all dreams must pass in time,\nUntil then, I will continue floating,\nAnd dreaming the wonderful dream of music."
        
        self.the_palace_of_empty_promises_pg1 = "Just seconds after Eilutari begins chanting, you find yourself in a luxuriously decorated room in what must be a palace. It seems to be a combination of a living room, bar and library, and at first, you are mesmerized by the presence of so many adornments and riches, but you cannot help but think that there is something missing. All is quiet. There is no one here but you. And there is no music.\n\nAs soon as you think of the quiet and absence of others, you see your friend, Samantha, appear in the middle of the room. She is painting something. You can only see the back of the canvas from here."
        self.the_palace_of_empty_promises_pg2 = "She looks at you with a smile, but she doesn't say anything. She just continues to paint. When you look at the canvas, you see two images parallel to each other. On the left side, you see yourself playing guitar while sitting at an outdoor cafe table with your friends at the beach. The look of happiness on your face makes you wonder when the last time was you smiled so joyfully. On the other side, you see yourself playing piano in a prison room surrounded by various instruments."
        #pg3 in getName()
        self.the_palace_of_empty_promises_pg4 = "There was a time when I imprisoned myself,\nAnd music felt like a terrible mistake,\nUngrateful like so many who have known the bliss of ease,\nNow, I yearn to persevere and push through and make it\nTo that other world where this music comes from,\n\nWhere is that other world?\nWhere is that other world?\nWhy do I get the feeling I'm looking too far,\nIt is near, it is always here,\nIt is somewhere deep inside me in the palace of my soul."
        
        self.the_temple_of_ancient_music_pg1 = "Just seconds after Eilutari begins chanting, you find yourself in the front of a temple in the mountains. Above, you can see birds flying near the trees. They're singing a beautifully harmonized song, and you have a feeling that their sound might subconsciously inspire your music later on. Looking back to the temple door, you begin to hear bells chime. Soon, violins start to accompany them along with other instruments one by one: the piano, the guitar and toms which slowly crescendo.\n\nYou want to walk towards the door, but at the same time, there is a part of you which wants to walk down the stairway. Suddenly, you realize that you have no choice but to walk towards the door. No matter how much desire you have to rest from your dreams and longing, you know that all you can do now is to walk forward and open the door."
        #pg2 in getName()
        self.the_temple_of_ancient_music_pg3 = "You walk forward. The door closes behind you. All becomes darkness. But, you feel no fear. The light soon begins to transform into a nebula which overtakes you. You raise your arms out and can't help but think that this light has resided in you your whole life, guiding you and protecting you from self-defeat and tragedy. Soon, monks of ancient times appear all around you, playing the instruments of the wonderful song you'd been hearing since the beginning of the dream.\n\nA monk playing the guitar: Take this song with you to your world and complete it. It has been forgotten by history but not buried by time. Not yet. You hold the key to its rebirth. All you need to do now is complete it with your voice and lyricism."
        self.the_temple_of_ancient_music_pg4 = "The mind cannot be limited by the world,\nFor the mind is limitless,\nMusic is one key\nTo the timeless and cosmic,\n\nI was once afraid that I could never keep up with it,\nBeaten, for a time, by day to day life,\nBut, day to day life is bound by time,\nThrough this song, I hope to know the timeless forever."

        
        
        
        #Main Menu GUI
        
        
        self.story_title = Label(text="A TEST ON MUSIC AND INTUITION", font=("Helvetica", 30), width=50,  bg=self.bgcolor, fg=self.text_color)
        
        self.story_title_x="96"
        self.story_title_y="57"
        self.story_title.place(x=self.story_title_x, y=self.story_title_y)        
        
        #Main Menu Options
        
        """self.main_menu_buttons_pad_x=200
        self.main_menu_buttons_pad_y=5"""
        
        self.credits_page_text = "Story, programming and music by Terence Im.\n\nThe OST is an edited instrumental version of my track, Cosmic Consciousness, from, Interstellar Souls EP.\n\nA Test on Music and Intuition was developed with Python using the Tkinter framework for the GUI and PyGame for audio playback."
        
        self.main_menu_frame = LabelFrame(width=600, height=680, bg=self.bgcolor, bd=0)
        self.start_option = Button(self.main_menu_frame, text="START", font=("Helvetica", 22), width=7, height=1, bg=self.bgcolor, fg=self.text_color, bd=0, command=self.DisplayNameInputText)
        self.how_to_play_option = Button(self.main_menu_frame, text="HOW TO PLAY", font=("Helvetica", 22), width=13, height=1, bg=self.bgcolor, fg=self.text_color, bd=0, command=self.HowToPlay)
        self.scenes_option = Button(self.main_menu_frame, text="SCENES", font=("Helvetica", 22), width= 10, height=1, bg=self.bgcolor, fg=self.text_color, bd=0, command=self.Scenes)
        self.credits_option = Button(self.main_menu_frame, text="CREDITS", font=("Helvetica", 22), width=7, height=1, bg=self.bgcolor, fg=self.text_color, bd=0, command=self.Credits)
        self.exit_option = Button(self.main_menu_frame, text="EXIT",  font=("Helvetica", 22), width=7, height=1, bg=self.bgcolor, fg=self.text_color, bd=0, command=self.Exit)
        
        #GUI for start and how to play
        
        self.main_menu_description_frame = LabelFrame(width=1000, height=590, bg=self.bgcolor, bd=0)
        self.how_to_play_text = "A Test on Music and Intuition is an interactive short story where you choose your character's dialogue, interact with the environment and determine the ending of the story through your character's choices. If you wish to read in silence, you can turn off the music in the side menu once the story begins. Each scene in the story is fairly short, so no worries if you can't finish the story in one sitting. You can skip to the beginning of each scene in the Scenes section in the main menu. Enjoy!"
        self.how_to_play_description = Label(self.main_menu_description_frame, text=self.how_to_play_text, wraplength=self.story_text_wrap, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, justify="left")
        self.credits_description = Label(self.main_menu_description_frame, text=self.credits_page_text, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, justify="left", wraplength=self.story_text_wrap)
        
        
        #y difference: 122
        self.main_menu_frame_x="652"
        self.main_menu_frame_y="280"
        self.main_menu_frame.place(x=self.main_menu_frame_x, y=self.main_menu_frame_y)
        self.start_option_x="195"
        self.start_option_y="1"
        self.start_option.place(x=self.start_option_x, y=self.start_option_y)
        
        self.how_to_play_option_x="114"
        self.how_to_play_option_y="123"
        self.how_to_play_option.place(x=self.how_to_play_option_x, y=self.how_to_play_option_y)

        self.scenes_option_x="156"
        self.scenes_option_y="245"
        self.scenes_option.place(x=self.scenes_option_x, y=self.scenes_option_y)
        
        self.credits_x="197"
        self.credits_y="367"
        self.credits_option.place(x=self.credits_x, y=self.credits_y)
        
        self.exit_option_x="196"
        self.exit_option_y="489"
        self.exit_option.place(x=self.exit_option_x, y=self.exit_option_y)

        #scene 1 widgets
        
        self.display_intro_pg1 = Label(self.story_text_frame, text=self.intro_pg1, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.continue_btn_pg1 = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.DisplayIntroPage2)

        self.display_intro_pg2 = Label(self.story_text_frame, text=self.intro_pg2, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.continue_btn_pg2 = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayIntroPage3)

        self.display_intro_pg3 = Label(self.story_text_frame, text=self.intro_pg3, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.continue_btn_pg3 = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayIntroPage4)
        
        self.display_intro_pg4 = Label(self.story_text_frame, text=self.intro_pg4, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.continue_btn_pg4 = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayIntroPage5)

        self.display_intro_pg5 = Label(self.story_text_frame, text=self.intro_pg5, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.continue_btn_pg5 = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayIntroPage6)

        self.display_intro_pg6_choice1 = Button(self.dialogue_choices_frame, text=self.intro_pg6_choice1, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), wraplength=self.story_text_wrap, justify="left", command=self.DisplayIntroPage6Res1)
        self.display_intro_pg6_choice2 = Button(self.dialogue_choices_frame, text=self.intro_pg6_choice2, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), wraplength=self.story_text_wrap, justify="left", command=self.DisplayIntroPage6Res2)

        self.continue_btn_pg6_res1_continue_btn = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayIntroPage7)

        self.continue_btn_pg6_res2_continue_btn = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayIntroPage7)

        self.display_intro_pg7 = Label(self.story_text_frame, text=self.intro_pg7, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.continue_btn_pg7 = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayIntroPage8)

        self.display_intro_pg8 = Label(self.story_text_frame, text=self.intro_pg8, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.continue_btn_pg8 = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayJuliansRoom)
        
        #scene 2 widgets
        

        self.display_julians_room_desk_choice1 = Button(self.choices_frame, text=self.julians_room_desk_choice1, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheSacrificesOfAnArtist)
        self.display_julians_room_desk_choice2 = Button(self.choices_frame, text=self.julians_room_desk_choice2, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayWhyDoWeLoveMusic)
        self.display_julians_room_desk_choice3 = Button(self.choices_frame, text=self.julians_room_desk_choice3, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayBeCarefreeInYourCreativity)
        self.display_julians_room_desk_choice4 = Button(self.choices_frame, text=self.julians_room_desk_choice4, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayManyInstrumentsOneMind)
        self.display_julians_room_desk_choice5 = Button(self.choices_frame, text=self.julians_room_desk_choice5, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayJuliansJournalEntry)
        self.display_julians_room_desk_choice6 = Button(self.choices_frame, text=self.julians_room_desk_choice6, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayLookAroundJuliansRoom)
                
        self.display_the_sacrifices_of_an_artist = Label(self.story_text_frame, text=self.the_sacrifices_of_an_artist, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_why_do_we_love_music = Label(self.story_text_frame, text=self.why_do_we_love_music, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_be_carefree_in_your_creativity = Label(self.story_text_frame, text=self.be_carefree_in_your_creativity, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_many_instruments_one_mind = Label(self.story_text_frame, text=self.many_instruments_one_mind, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_julians_journal_entry = Label(self.story_text_frame, text=self.julians_journal_entry, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")

        self.display_look_around_julians_room = Label(self.story_text_frame, text=self.look_around_julians_room, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=940, justify="left")
        self.display_look_around_julians_room_choice1 = Button(self.choices_frame, text=self.look_around_julians_room_choice1, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayEilutarisLetter)
        self.display_look_around_julians_room_choice2 = Button(self.choices_frame, text=self.look_around_julians_room_choice2, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplaySusannahsPainting)
        self.display_look_around_julians_room_choice3 = Button(self.choices_frame, text=self.look_around_julians_room_choice3, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayPlayYourPiano)
        self.display_look_around_julians_room_choice4 = Button(self.choices_frame, text=self.look_around_julians_room_choice4, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayMeditationCorner)
        self.display_look_around_julians_room_choice5 = Button(self.choices_frame, text=self.look_around_julians_room_choice5, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayWalkToYourBalcony)
        self.display_look_around_julians_room_choice6 = Button(self.choices_frame, text=self.look_around_julians_room_choice6, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayJuliansRoom)
     
        #scene 3 widgets
        
        
        #side menu widgets
        
        self.side_menu_frame = LabelFrame(width=240, height=400, bg=self.bgcolor, bd=0)
        self.open_menu = Button(self.side_menu_frame, text="MENU", font=("Helvetica", 16), bg=self.bgcolor, fg=self.text_color, bd=0, command=self.OpenSideMenu)
                
        self.music_on_off = Button(self.side_menu_frame, text="Turn music on/off", font=("Helvetica", 14), bg=self.bgcolor, fg=self.text_color, bd=0, command=self.PlayOrStopOST)
    
        
        #add in update
        #self.music_volume_label = Label(self.side_menu_frame, text="Music volume:", font=("Helvetica", 14), height=1, bg=self.bgcolor, fg=self.text_color, bd=0)
        #self.music_volume_label.place(x=0, y=100)
        
        
        self.return_home = Button(self.side_menu_frame, text="Return home", font=("Helvetica", 14), bg=self.bgcolor, fg=self.text_color, bd=0, command=self.ReturnHome)
        self.return_home2 = Button(self.main_menu_description_frame, text="RETURN HOME", font=("Helvetica", 14), bg=self.bgcolor, fg=self.text_color, bd=0, command=self.ReturnHome2)
        
        #OST playback
        
        #sound
        pygame.mixer.init()
        self.soundtrack = pygame.mixer.Sound('OST/Cosmic_Consciousness_OST_Version.wav')
        self.music_is_playing = True
        self.LoopOST()
        
    def LoopOST(self):
        self.soundtrack.play(loops=-1)
        
    def StopOST(self):
        self.soundtrack.stop()
        
    def PlayOrStopOST(self):
        if self.music_is_playing:
            self.StopOST()
            self.music_is_playing = False
        elif not self.music_is_playing:
            self.LoopOST()
            self.music_is_playing = True
     
    def HowToPlay(self):
        
        self.main_menu_frame.place_forget()
        self.story_title.place_forget()
        
        self.main_menu_description_frame.place(x=470, y=250)      
        
        self.how_to_play_description.place(x=9, y=5)
        self.return_home2.place(x=0, y=400) 
        
        
    def Credits(self):
        self.main_menu_frame.place_forget()
        self.story_title.place_forget()
        
        self.main_menu_description_frame.place(x=470, y=250)
        self.credits_description.place(x=9, y=5)
        self.return_home2.place(x=0, y=400)
        
    def Scenes(self):
        self.main_menu_frame.place_forget()
        self.story_title.place_forget()
        
        self.main_menu_description_frame.place(x=470, y=250)
        
        self.go_to_scene1 = Button(self.main_menu_description_frame, text="Scene 1: Focus and Resolve Diminished", font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, bd=0, command=self.DisplayNameInputText)
        self.go_to_scene2 = Button(self.main_menu_description_frame, text="Scene 2: A Private Temple for Music and Philosophy", font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, bd=0, command=self.DisplayNameInputText2)
        self.go_to_scene3 = Button(self.main_menu_description_frame, text="Scene 3: Between Three Dreams", font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, bd=0, command=self.DisplayNameInputText3)
        
        self.go_to_scene1.place(x=0, y=0)
        self.go_to_scene2.place(x=0, y=50)
        self.go_to_scene3.place(x=0, y=100)
        self.return_home2.place(x=0, y=400)
    
    def GoToScene2(self):
        if hasattr(self, 'main_menu_description_frame'):
            self.main_menu_description_frame.place_forget()
        if hasattr(self, 'go_to_scene1'):
            self.go_to_scene1.place_forget()
        if hasattr(self, 'go_to_scene2'):
            self.go_to_scene2.place_forget()
        if hasattr(self, 'go_to_scene3'):
            self.go_to_scene3.place_forget()
        if hasattr(self, 'return_home2'):
            self.return_home2.place_forget()
               
    def GoToScene3(self):
        if hasattr(self, 'main_menu_description_frame'):
            self.main_menu_description_frame.place_forget()
        if hasattr(self, 'go_to_scene1'):
            self.go_to_scene1.place_forget()
        if hasattr(self, 'go_to_scene2'):
            self.go_to_scene2.place_forget()
        if hasattr(self, 'go_to_scene3'):
            self.go_to_scene3.place_forget()
        if hasattr(self, 'return_home2'):
            self.return_home2.place_forget()
              
    def ReturnHome2(self):
                
        self.main_menu_description_frame.place_forget()
        if hasattr(self, 'how_to_play_description'):
            self.how_to_play_description.place_forget()
        if hasattr(self, 'return_home2'):
            self.return_home2.place_forget()
        if hasattr(self, 'credits_description'):
            self.credits_description.place_forget()
        if hasattr(self, 'go_to_scene1'):
            self.go_to_scene1.place_forget()
        if hasattr(self, 'go_to_scene2'):
            self.go_to_scene2.place_forget()
        if hasattr(self, 'go_to_scene3'):
            self.go_to_scene3.place_forget()
        
        self.story_title.place(x=self.story_title_x, y=self.story_title_y)        
        self.main_menu_frame.place(x=self.main_menu_frame_x, y=self.main_menu_frame_y)
        self.start_option.place(x=self.start_option_x, y=self.start_option_y)
        self.how_to_play_option.place(x=self.how_to_play_option_x, y=self.how_to_play_option_y)
        self.scenes_option.place(x=self.scenes_option_x, y=self.scenes_option_y)
        self.exit_option.place(x=self.exit_option_x, y=self.exit_option_y)
        
    def Exit(self):
        root.destroy()
            
    def OpenSideMenu(self):
        
        if (self.side_menu_count == 0):
            self.music_on_off.place(x=3, y=75)
            self.return_home.place(x=3, y=125)
            self.side_menu_count = 1
            
        elif (self.side_menu_count == 1):
            self.music_on_off.place_forget()
            self.return_home.place_forget()
            self.side_menu_count = 0


    #Display Name Input Prompt
    
    def DisplayNameInputText(self):
        
        if hasattr(self, 'main_menu_description_frame'):
            self.main_menu_description_frame.place_forget()
        if hasattr(self, 'self.go_to_scene1'):
            self.go_to_scene1.place_forget()
        if hasattr(self, 'self.go_to_scene2'):
            self.go_to_scene2.place_forget()
        if hasattr(self, 'self.go_to_scene3'):
            self.go_to_scene3.place_forget()
        if hasattr(self, 'self.return_home2'):
            self.return_home2.place_forget()
        
        self.name_entry_field = Entry(self.story_text_frame, width=50, fg=self.text_color)
        self.main_menu_frame.place_forget()
        self.story_title.place_forget()
        
        self.story_text_frame.place(x=470, y=50)
        self.name_entry_text.place(x=0, y=270)
        self.name_entry_field.place(x=0, y=340)
        self.choices_frame.place(x=462, y=605)
        self.get_name.place(x=0, y=0)
        self.side_menu_frame.place(x=37, y=52)
        self.open_menu.place(x=0, y=0)
        
    def DisplayNameInputText2(self):
        if hasattr(self, 'main_menu_description_frame'):
            self.main_menu_description_frame.place_forget()
        if hasattr(self, 'self.go_to_scene1'):
            self.go_to_scene1.place_forget()
        if hasattr(self, 'self.go_to_scene2'):
            self.go_to_scene2.place_forget()
        if hasattr(self, 'self.go_to_scene3'):
            self.go_to_scene3.place_forget()
        if hasattr(self, 'self.return_home2'):
            self.return_home2.place_forget()
            
        self.name_entry_field = Entry(self.story_text_frame, width=50, fg=self.text_color)
        self.main_menu_frame.place_forget()
        self.story_title.place_forget()
        
        self.story_text_frame.place(x=470, y=50)
        self.name_entry_text.place(x=0, y=270)
        self.name_entry_field.place(x=0, y=340)
        self.choices_frame.place(x=462, y=605)
        self.get_name2.place(x=0, y=0)
        self.side_menu_frame.place(x=37, y=52)
        self.open_menu.place(x=0, y=0)

    def DisplayNameInputText3(self):
        if hasattr(self, 'main_menu_description_frame'):
            self.main_menu_description_frame.place_forget()
        if hasattr(self, 'self.go_to_scene1'):
            self.go_to_scene1.place_forget()
        if hasattr(self, 'self.go_to_scene2'):
            self.go_to_scene2.place_forget()
        if hasattr(self, 'self.go_to_scene3'):
            self.go_to_scene3.place_forget()
        if hasattr(self, 'self.return_home2'):
            self.return_home2.place_forget()
            
        self.name_entry_field = Entry(self.story_text_frame, width=50, fg=self.text_color)
        self.main_menu_frame.place_forget()
        self.story_title.place_forget()
        
        self.story_text_frame.place(x=470, y=50)
        self.name_entry_text.place(x=0, y=270)
        self.name_entry_field.place(x=0, y=340)
        self.choices_frame.place(x=462, y=605)
        self.get_name3.place(x=0, y=0)
        self.side_menu_frame.place(x=37, y=52)
        self.open_menu.place(x=0, y=0)
    
    def GetName(self):
        self.name_entry_field.get()
        self.name_entry_text.place_forget()
        self.name_entry_field.place_forget()
        self.get_name.place_forget()
        self.DisplayIntroPage1()
        
        self.intro_pg6 =  "After listening to your composition, Eilutari nodded his head and went to his desk to light a cigar. As he smoked, he thought for some time before responding. Eilutari: Tell me, " + self.name_entry_field.get() + ", why do you write music?"
        self.intro_pg6_res1 = "Eilutari: I appreciate that you feel a desire to connect with the world, " + self.name_entry_field.get() + ". That is rare for someone of your generation in this day and age, though there was a time not too long ago, when the people of Felzance felt deeply in love with the world and devoted all its creative and mystical powers to the betterment of human consciousness for all the world. Keep that feeling close to your heart every day, and your music will someday bloom into an everlasting light for all the world."
        self.intro_pg6_res2 = "Eilutari: Daydreaming and feeling other-worldly bliss are but two of the joys that the path of the composer can know," + self.name_entry_field.get() + ". The third is this: to be able to rest well at night that your art is bringing peace and joy to others' hearts. Through this habitual act of compassion, you will also feel the joy of the world's collective heart, for you are directly intertwined with it."
        self.eilutaris_letter = "I hope that while I've been away for the past three months, you've been hard at work in improving yourself, " + self.name_entry_field.get() + ", and I don't just mean within your composition and lyricism. You must treat your mind and body like works of art. Pay close attention to not just the more obvious blemishes of mind-body harmony but also to the subtler ones. With passion, perseverance and gratitude, cultivate yourself every day and honor the gift that your parents and the universe have granted you: the music of life."
        self.the_test_pg1 = "You enter Eilutari's classroom later that morning. He is smoking a cigar in the balcony outside, looking at the garden below. He turns to look at you and waves to you to go on the balcony. You walk towards him, feeling the weight of this day's test bear down on your shoulders.\n\nEilutari: Good morning, " + self.name_entry_field.get() + ", I hope you're not stressing too much over today's test, but most likely, you are. How are you feeling today?"
        self.the_test_pg1_res1 = "Eilutari: You are right to say that your worries are an illusion, and you are also brave for having the courage to elevate your mind in spite of your fears. This is true courage, " + self.name_entry_field.get() + ", even if it might not feel like it. Now, let us begin, shall we?"
        self.the_palace_of_empty_promises_pg3 = "Susannah: I didn't, " + self.name_entry_field.get() + ". You did.\n\nYou want to run away to somewhere else in the palace and lose yourself in the mirage of these comforting rooms adorned with what seem to be the greatest riches. But, you know deep down inside that you have no choice but to face the truth of her words now. You begin to hear something; the melody of a song which you feel is coming simultaneously from outside of yourself as well as within. You have the great urge to start playing and writing down a composition. But, there are no instruments around. Samantha hands you her paint brush. As soon as you take it, you stare at it, confused as to what to do with it. But soon, the paint brush morphs into a jewel, then a bar of gold and finally, a crystal of continually changing colors. The colors seem to synchronize with the intensity of your emotions; your longing to play music. The crystal transforms into a grand piano with a chair."
        self.the_desert_of_forgetfulness_pg2 = "You feel tempted to say something to him, but words can't come out of your mouth. You know who this is. He is the better half to your heart; the one who believes in all his dreams. You can't do anything. The immensity of this moment of self-reflection takes hold of you, and you can only watch what happens now. As soon as he starts walking towards you, birds begin to appear.\n\nYour better half: I know why you're afraid to go on with your journey in music, " + self.name_entry_field.get() + ". Only I know, because I know everything about you. And, I am the only one who can take you to the grandest heights of your dreams. But, all you have to do is one thing.\n\nHe stands before you now and raises your hand. You want to resist, but there is no choice now but to do what must be done."
        self.the_temple_of_ancient_music_pg2 = "You open the door. All you see is darkness within. But, the music becomes louder and more attractive. Soon, you begin to see the dim yet mesmerizing glow of a star-like luminescence. You hear someone say, \"Come forward. There is nothing to fear here.\" You try to say something back. You want to resist the voice's invitation. But, all you can do now is to follow along your strongest desire between the two which are: seizing your dreams and destroying them.\n\nAnother voice: We know why you're afraid, " + self.name_entry_field.get() + ". You're afraid of the uncertainties of the future. We are here to help. Come, and you will never fear the future again."
        
    def Scene2GetName(self):
        self.name_entry_field.get()
        self.name_entry_text.place_forget()
        self.name_entry_field.place_forget()
        self.get_name2.place_forget()
        
        self.intro_pg6 =  "After listening to your composition, Eilutari nodded his head and went to his desk to light a cigar. As he smoked, he thought for some time before responding. Eilutari: Tell me, " + self.name_entry_field.get() + ", why do you write music?"
        self.intro_pg6_res1 = "Eilutari: I appreciate that you feel a desire to connect with the world, " + self.name_entry_field.get() + ". That is rare for someone of your generation in this day and age, though there was a time not too long ago, when the people of Felzance felt deeply in love with the world and devoted all its creative and mystical powers to the betterment of human consciousness for all the world. Keep that feeling close to your heart every day, and your music will someday bloom into an everlasting light for all the world."
        self.intro_pg6_res2 = "Eilutari: Daydreaming and feeling other-worldly bliss are but two of the joys that the path of the composer can know," + self.name_entry_field.get() + ". The third is this: to be able to rest well at night that your art is bringing peace and joy to others' hearts. Through this habitual act of compassion, you will also feel the joy of the world's collective heart, for you are directly intertwined with it."
        self.eilutaris_letter = "I hope that while I've been away for the past three months, you've been hard at work in improving yourself, " + self.name_entry_field.get() + ", and I don't just mean within your composition and lyricism. You must treat your mind and body like works of art. Pay close attention to not just the more obvious blemishes of mind-body harmony but also to the subtler ones. With passion, perseverance and gratitude, cultivate yourself every day and honor the gift that your parents and the universe have granted you: the music of life."
        self.the_test_pg1 = "You enter Eilutari's classroom later that morning. He is smoking a cigar in the balcony outside, looking at the garden below. He turns to look at you and waves to you to go on the balcony. You walk towards him, feeling the weight of this day's test bear down on your shoulders.\n\nEilutari: Good morning, " + self.name_entry_field.get() + ", I hope you're not stressing too much over today's test, but most likely, you are. How are you feeling today?"
        self.the_test_pg1_res1 = "Eilutari: You are right to say that your worries are an illusion, and you are also brave for having the courage to elevate your mind in spite of your fears. This is true courage, " + self.name_entry_field.get() + ", even if it might not feel like it. Now, let us begin, shall we?"
        self.the_palace_of_empty_promises_pg3 = "Susannah: I didn't, " + self.name_entry_field.get() + ". You did.\n\nYou want to run away to somewhere else in the palace and lose yourself in the mirage of these comforting rooms adorned with what seem to be the greatest riches. But, you know deep down inside that you have no choice but to face the truth of her words now. You begin to hear something; the melody of a song which you feel is coming simultaneously from outside of yourself as well as within. You have the great urge to start playing and writing down a composition. But, there are no instruments around. Samantha hands you her paint brush. As soon as you take it, you stare at it, confused as to what to do with it. But soon, the paint brush morphs into a jewel, then a bar of gold and finally, a crystal of continually changing colors. The colors seem to synchronize with the intensity of your emotions; your longing to play music. The crystal transforms into a grand piano with a chair."
        self.the_desert_of_forgetfulness_pg2 = "You feel tempted to say something to him, but words can't come out of your mouth. You know who this is. He is the better half to your heart; the one who believes in all his dreams. You can't do anything. The immensity of this moment of self-reflection takes hold of you, and you can only watch what happens now. As soon as he starts walking towards you, birds begin to appear.\n\nYour better half: I know why you're afraid to go on with your journey in music, " + self.name_entry_field.get() + ". Only I know, because I know everything about you. And, I am the only one who can take you to the grandest heights of your dreams. But, all you have to do is one thing.\n\nHe stands before you now and raises your hand. You want to resist, but there is no choice now but to do what must be done."
        self.the_temple_of_ancient_music_pg2 = "You open the door. All you see is darkness within. But, the music becomes louder and more attractive. Soon, you begin to see the dim yet mesmerizing glow of a star-like luminescence. You hear someone say, \"Come forward. There is nothing to fear here.\" You try to say something back. You want to resist the voice's invitation. But, all you can do now is to follow along your strongest desire between the two which are: seizing your dreams and destroying them.\n\nAnother voice: We know why you're afraid, " + self.name_entry_field.get() + ". You're afraid of the uncertainties of the future. We are here to help. Come, and you will never fear the future again."
        
        self.DisplayJuliansRoom()
        
    def Scene3GetName(self):
        self.name_entry_field.get()
        self.name_entry_text.place_forget()
        self.name_entry_field.place_forget()
        self.get_name3.place_forget()
        
        
        self.the_test_pg1 = "You enter Eilutari's classroom later that morning. He is smoking a cigar in the balcony outside, looking at the garden below. He turns to look at you and waves to you to go on the balcony. You walk towards him, feeling the weight of this day's test bear down on your shoulders.\n\nEilutari: Good morning, " + self.name_entry_field.get() + ", I hope you're not stressing too much over today's test, but most likely, you are. How are you feeling today?"
        self.the_test_pg1_res1 = "Eilutari: You are right to say that your worries are an illusion, and you are also brave for having the courage to elevate your mind in spite of your fears. This is true courage, " + self.name_entry_field.get() + ", even if it might not feel like it. Now, let us begin, shall we?"
        self.the_palace_of_empty_promises_pg3 = "Susannah: I didn't, " + self.name_entry_field.get() + ". You did.\n\nYou want to run away to somewhere else in the palace and lose yourself in the mirage of these comforting rooms adorned with what seem to be the greatest riches. But, you know deep down inside that you have no choice but to face the truth of her words now. You begin to hear something; the melody of a song which you feel is coming simultaneously from outside of yourself as well as within. You have the great urge to start playing and writing down a composition. But, there are no instruments around. Samantha hands you her paint brush. As soon as you take it, you stare at it, confused as to what to do with it. But soon, the paint brush morphs into a jewel, then a bar of gold and finally, a crystal of continually changing colors. The colors seem to synchronize with the intensity of your emotions; your longing to play music. The crystal transforms into a grand piano with a chair."
        self.the_desert_of_forgetfulness_pg2 = "You feel tempted to say something to him, but words can't come out of your mouth. You know who this is. He is the better half to your heart; the one who believes in all his dreams. You can't do anything. The immensity of this moment of self-reflection takes hold of you, and you can only watch what happens now. As soon as he starts walking towards you, birds begin to appear.\n\nYour better half: I know why you're afraid to go on with your journey in music, " + self.name_entry_field.get() + ". Only I know, because I know everything about you. And, I am the only one who can take you to the grandest heights of your dreams. But, all you have to do is one thing.\n\nHe stands before you now and raises your hand. You want to resist, but there is no choice now but to do what must be done."
        self.the_temple_of_ancient_music_pg2 = "You open the door. All you see is darkness within. But, the music becomes louder and more attractive. Soon, you begin to see the dim yet mesmerizing glow of a star-like luminescence. You hear someone say, \"Come forward. There is nothing to fear here.\" You try to say something back. You want to resist the voice's invitation. But, all you can do now is to follow along your strongest desire between the two which are: seizing your dreams and destroying them.\n\nAnother voice: We know why you're afraid, " + self.name_entry_field.get() + ". You're afraid of the uncertainties of the future. We are here to help. Come, and you will never fear the future again."
        
        self.DisplayTheTestPage1()
        
        
    #display scene 1 pages
    
    def DisplayIntroPage1(self):
        
        self.display_intro_pg1.place(x=self.story_text_x, y=self.story_text_y)
        self.continue_btn_pg1.place(x=self.choices_btn_padx, y=self.continue_btn_y)

        
    def DisplayIntroPage2(self):
        self.display_intro_pg1.place_forget()
        self.display_intro_pg2.place(x=self.story_text_x, y=self.story_text_y)
        self.continue_btn_pg1.place_forget()
        self.continue_btn_pg2.place(x=self.choices_btn_padx, y=self.continue_btn_y)
        
        
    def DisplayIntroPage3(self):
        self.display_intro_pg2.place_forget()
        self.display_intro_pg3.place(x=self.story_text_x, y=self.story_text_y)
        self.continue_btn_pg2.place_forget()
        self.continue_btn_pg3.place(x=self.choices_btn_padx, y=self.continue_btn_y)
    
    def DisplayIntroPage4(self):
        self.display_intro_pg3.place_forget()
        self.display_intro_pg4.place(x=self.story_text_x, y=self.story_text_y)
        self.continue_btn_pg3.place_forget()
        self.continue_btn_pg4.place(x=self.choices_btn_padx, y=self.continue_btn_y)
        
    def DisplayIntroPage5(self):
        self.display_intro_pg4.place_forget()
        self.display_intro_pg5.place(x=self.story_text_x, y=self.story_text_y)
        self.continue_btn_pg4.place_forget()
        self.continue_btn_pg5.place(x=self.choices_btn_padx, y=self.continue_btn_y)
    
    def DisplayIntroPage6(self):
        self.display_intro_pg5.place_forget()
        self.display_intro_pg6 = Label(self.story_text_frame, text=self.intro_pg6, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_intro_pg6.place(x=self.story_text_x, y=self.story_text_y)
        self.continue_btn_pg5.place_forget()
        
        self.dialogue_choices_frame.place(x=462, y=305)
        
        self.display_intro_pg6_choice1.place(x=self.choices_btn_padx, y=0)
        self.display_intro_pg6_choice2.place(x=self.choices_btn_padx, y=290)
        
        
        """self.continue_btn_pg6 = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayIntroPage6)
        self.continue_btn_pg6.place(x=self.choices_btn_padx, y=self.continue_btn_y)"""
        
        
    def DisplayIntroPage6Res1(self):
        self.display_intro_pg6.place_forget()
        self.display_intro_pg6_choice1.place_forget()
        self.display_intro_pg6_choice2.place_forget()
        self.dialogue_choices_frame.place_forget()
        
        self.display_intro_pg6_res1 = Label(self.story_text_frame, text=self.intro_pg6_res1, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_intro_pg6_res2 = Label(self.story_text_frame, text=self.intro_pg6_res2, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        
        self.display_intro_pg6_res1.place(x=self.story_text_x, y=self.story_text_y)
       
        self.continue_btn_pg6_res1_continue_btn.place(x=self.choices_btn_padx, y=self.continue_btn_y)
    
        
    def DisplayIntroPage6Res2(self):
        
        self.display_intro_pg6.place_forget()
        self.display_intro_pg6_choice1.place_forget()
        self.display_intro_pg6_choice2.place_forget()
        self.dialogue_choices_frame.place_forget()
        
        self.display_intro_pg6_res1 = Label(self.story_text_frame, text=self.intro_pg6_res1, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_intro_pg6_res2 = Label(self.story_text_frame, text=self.intro_pg6_res2, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_intro_pg6_res2.place(x=self.story_text_x, y=self.story_text_y)
        self.continue_btn_pg6_res2_continue_btn.place(x=self.choices_btn_padx, y=self.continue_btn_y)
    
    
    def DisplayIntroPage7(self):
        
        self.display_intro_pg6_res1.place_forget()
        self.continue_btn_pg6_res1_continue_btn.place_forget()
        self.display_intro_pg6_res2.place_forget()
        self.continue_btn_pg6_res2_continue_btn.place_forget()
        
        self.display_intro_pg7.place(x=self.story_text_x, y=self.story_text_y)
        self.continue_btn_pg7.place(x=self.choices_btn_padx, y=self.continue_btn_y) 
        
    def DisplayIntroPage8(self):
        self.display_intro_pg7.place_forget()
        self.display_intro_pg8.place(x=self.story_text_x, y=self.story_text_y)
        self.continue_btn_pg7.place_forget()
        self.continue_btn_pg8.place(x=self.choices_btn_padx, y=self.continue_btn_y)
        
    #display scene 2 pages
                                                
    def DisplayJuliansRoom(self):
        if(self.has_done_first_action == False):
            self.current_julians_room_desk = self.julians_room_desk
            
        elif(self.has_done_first_action == True):
            self.current_julians_room_desk = self.julians_room_desk2
        

        self.display_intro_pg8.place_forget()
        self.continue_btn_pg8.place_forget()
        self.display_look_around_julians_room.place_forget()
        self.display_look_around_julians_room_choice1.place_forget()
        self.display_look_around_julians_room_choice2.place_forget()
        self.display_look_around_julians_room_choice3.place_forget()   
        self.display_look_around_julians_room_choice4.place_forget()
        self.display_look_around_julians_room_choice5.place_forget()
        self.display_look_around_julians_room_choice6.place_forget()
        
        self.display_julians_room_desk = Label(self.story_text_frame, text=self.current_julians_room_desk, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=940, justify="left")
        self.display_julians_room_desk.place(x=self.story_text_x, y=self.story_text_y)    
        self.display_julians_room_desk_choice1.place(x=self.choices_btn_padx, y=0)
        self.display_julians_room_desk_choice2.place(x=self.choices_btn_padx, y=50)
        self.display_julians_room_desk_choice3.place(x=self.choices_btn_padx, y=100)
        self.display_julians_room_desk_choice4.place(x=self.choices_btn_padx, y=150)
        self.display_julians_room_desk_choice5.place(x=self.choices_btn_padx, y=200)
        self.display_julians_room_desk_choice6.place(x=self.choices_btn_padx, y=250)
        
        self.display_julians_room_desk_choice7 = Button(self.choices_frame, text=self.julians_room_desk_choice7_text, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTestPage1)
        
        
        if self.has_read_the_sacrifices_of_an_artist and self.has_read_why_do_we_love_music and self.has_read_be_carefree_in_your_creativity and self.has_read_many_instruments_one_mind and self.has_read_julians_journal_entry:
            self.display_julians_room_desk_choice7.place(x=self.choices_btn_padx, y=300)
        
    def DisplayTheSacrificesOfAnArtist(self):
        
        self.has_done_first_action = True
        self.has_read_the_sacrifices_of_an_artist = True
        
        self.display_julians_room_desk.place_forget()
        self.display_julians_room_desk_choice1.place_forget()
        self.display_julians_room_desk_choice2.place_forget()
        self.display_julians_room_desk_choice3.place_forget()   
        self.display_julians_room_desk_choice4.place_forget()
        self.display_julians_room_desk_choice5.place_forget()
        self.display_julians_room_desk_choice6.place_forget()
        self.display_julians_room_desk_choice7.place_forget()
        
        self.display_the_sacrifices_of_an_artist.place(x=self.story_text_x, y=self.story_text_y)
        
        self.close_book = Button(self.choices_frame, text="Close book", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.EraseTheSacrificesOfAnArtist)
        self.close_book.place(x=self.choices_btn_padx, y=self.continue_btn_y)
        
    def EraseTheSacrificesOfAnArtist(self):
        
        self.display_the_sacrifices_of_an_artist.place_forget()
        self.close_book.place_forget()
        self.DisplayJuliansRoom()
    
    def DisplayWhyDoWeLoveMusic(self):
        
        self.has_done_first_action = True
        self.has_read_why_do_we_love_music = True
        
        self.display_julians_room_desk.place_forget()
        self.display_julians_room_desk_choice1.place_forget()
        self.display_julians_room_desk_choice2.place_forget()
        self.display_julians_room_desk_choice3.place_forget()   
        self.display_julians_room_desk_choice4.place_forget()
        self.display_julians_room_desk_choice5.place_forget()
        self.display_julians_room_desk_choice6.place_forget()
        self.display_julians_room_desk_choice7.place_forget()
        
        self.display_why_do_we_love_music.place(x=self.story_text_x, y=self.story_text_y)
        
        self.close_book = Button(self.choices_frame, text="Close book", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.EraseWhyDoWeLoveMusic)
        self.close_book.place(x=self.choices_btn_padx, y=self.continue_btn_y)
        
    def EraseWhyDoWeLoveMusic(self):
        
        self.display_why_do_we_love_music.place_forget()
        self.close_book.place_forget()
        self.DisplayJuliansRoom()
        
    def DisplayBeCarefreeInYourCreativity(self):
        
        self.has_done_first_action = True
        self.has_read_be_carefree_in_your_creativity = True
        
        self.display_julians_room_desk.place_forget()
        self.display_julians_room_desk_choice1.place_forget()
        self.display_julians_room_desk_choice2.place_forget()
        self.display_julians_room_desk_choice3.place_forget()   
        self.display_julians_room_desk_choice4.place_forget()
        self.display_julians_room_desk_choice5.place_forget()
        self.display_julians_room_desk_choice6.place_forget()
        self.display_julians_room_desk_choice7.place_forget()
        self.choices_frame.place_forget()
        
        self.display_be_carefree_in_your_creativity.place(x=self.story_text_x, y=self.story_text_y)
        
        self.be_carefree_close_book_frame.place(x=462, y=645)
        self.close_book = Button(self.be_carefree_close_book_frame, text="Close book", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.EraseBeCarefreeInYourCreativity)
        self.close_book.place(x=self.choices_btn_padx, y=self.continue_btn_y)
    
    def EraseBeCarefreeInYourCreativity(self):
        
        self.close_book.place_forget()
        self.be_carefree_close_book_frame.place_forget()
        self.display_be_carefree_in_your_creativity.place_forget()
        self.choices_frame.place(x=462, y=605)
        self.DisplayJuliansRoom()

    def DisplayManyInstrumentsOneMind(self):
    
        self.has_done_first_action = True
        self.has_read_many_instruments_one_mind = True
        
        self.display_julians_room_desk.place_forget()
        self.display_julians_room_desk_choice1.place_forget()
        self.display_julians_room_desk_choice2.place_forget()
        self.display_julians_room_desk_choice3.place_forget()   
        self.display_julians_room_desk_choice4.place_forget()
        self.display_julians_room_desk_choice5.place_forget()
        self.display_julians_room_desk_choice6.place_forget()
        self.display_julians_room_desk_choice7.place_forget()
        
        self.display_many_instruments_one_mind.place(x=self.story_text_x, y=self.story_text_y)
    
        self.close_book = Button(self.choices_frame, text="Close book", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.EraseManyInstrumentsOneMind)
        self.close_book.place(x=self.choices_btn_padx, y=self.continue_btn_y)
    
    def EraseManyInstrumentsOneMind(self):
    
        self.display_many_instruments_one_mind.place_forget()
        self.close_book.place_forget()
        self.DisplayJuliansRoom()
        
    
    def DisplayJuliansJournalEntry(self):
        
        self.has_done_first_action = True
        self.has_read_julians_journal_entry = True
        
        self.display_julians_room_desk.place_forget()
        self.display_julians_room_desk_choice1.place_forget()
        self.display_julians_room_desk_choice2.place_forget()
        self.display_julians_room_desk_choice3.place_forget()   
        self.display_julians_room_desk_choice4.place_forget()
        self.display_julians_room_desk_choice5.place_forget()
        self.display_julians_room_desk_choice6.place_forget()
        self.display_julians_room_desk_choice7.place_forget()
        
        self.display_julians_journal_entry.place(x=self.story_text_x, y=self.story_text_y)
        
        
        self.close_book = Button(self.choices_frame, text="Close book", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.EraseJuliansJournalEntry)
        self.close_book.place(x=self.choices_btn_padx, y=self.continue_btn_y)
        
        
    
    def EraseJuliansJournalEntry(self):
        
        self.display_julians_journal_entry.place_forget()
        self.close_book.place_forget()
        self.DisplayJuliansRoom()

    def DisplayLookAroundJuliansRoom(self):

        self.has_done_first_action = True
        
        self.display_julians_room_desk.place_forget()
        self.display_julians_room_desk_choice1.place_forget()
        self.display_julians_room_desk_choice2.place_forget()
        self.display_julians_room_desk_choice3.place_forget()   
        self.display_julians_room_desk_choice4.place_forget()
        self.display_julians_room_desk_choice5.place_forget()
        self.display_julians_room_desk_choice6.place_forget()
        self.display_julians_room_desk_choice7.place_forget()
        
        self.display_look_around_julians_room.place(x=self.story_text_x, y=self.story_text_y)
        
        
        """ Button(self.choices_frame, text=self.julians_room_desk_choice1, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheSacrificesOfAnArtist)
        self.display_julians_room_desk_choice1.place(x=self.choices_btn_padx, y=0) """
        
        self.display_look_around_julians_room_choice1.place(x=self.choices_btn_padx, y=0)
        self.display_look_around_julians_room_choice2.place(x=self.choices_btn_padx, y=50)
        self.display_look_around_julians_room_choice3.place(x=self.choices_btn_padx, y=100)
        self.display_look_around_julians_room_choice4.place(x=self.choices_btn_padx, y=150)
        self.display_look_around_julians_room_choice5.place(x=self.choices_btn_padx, y=200)
        self.display_look_around_julians_room_choice6.place(x=self.choices_btn_padx, y=250)

    
    def DisplayEilutarisLetter(self):
        
        self.display_look_around_julians_room.place_forget()
        self.display_look_around_julians_room_choice1.place_forget()
        self.display_look_around_julians_room_choice2.place_forget()
        self.display_look_around_julians_room_choice3.place_forget()   
        self.display_look_around_julians_room_choice4.place_forget()
        self.display_look_around_julians_room_choice5.place_forget()
        self.display_look_around_julians_room_choice6.place_forget()
        
        self.display_look_around_julians_room_current_choice_res = Label(self.story_text_frame, text=self.eilutaris_letter, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_look_around_julians_room_current_choice_res.place(x=self.story_text_x, y=self.story_text_y)
        
        self.display_go_back_to_looking_around = Button(self.choices_frame, text="1. Look around your room.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.EraseLookAroundJuliansRoomCurrentChoice)
        self.display_go_back_to_looking_around.place(x=self.choices_btn_padx, y=self.continue_btn_y)

        
    def DisplaySusannahsPainting(self):
        
        self.display_look_around_julians_room.place_forget()
        self.display_look_around_julians_room_choice1.place_forget()
        self.display_look_around_julians_room_choice2.place_forget()
        self.display_look_around_julians_room_choice3.place_forget()   
        self.display_look_around_julians_room_choice4.place_forget()
        self.display_look_around_julians_room_choice5.place_forget()
        self.display_look_around_julians_room_choice6.place_forget()
        
        self.display_look_around_julians_room_current_choice_res = Label(self.story_text_frame, text=self.susannahs_painting, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_look_around_julians_room_current_choice_res.place(x=self.story_text_x, y=self.story_text_y)
        
        self.display_go_back_to_looking_around = Button(self.choices_frame, text="1. Look around your room.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.EraseLookAroundJuliansRoomCurrentChoice)
        self.display_go_back_to_looking_around.place(x=self.choices_btn_padx, y=self.continue_btn_y)
        
    def DisplayPlayYourPiano(self):
        
        self.display_look_around_julians_room.place_forget()
        self.display_look_around_julians_room_choice1.place_forget()
        self.display_look_around_julians_room_choice2.place_forget()
        self.display_look_around_julians_room_choice3.place_forget()   
        self.display_look_around_julians_room_choice4.place_forget()
        self.display_look_around_julians_room_choice5.place_forget()
        self.display_look_around_julians_room_choice6.place_forget()
        
        self.display_look_around_julians_room_current_choice_res = Label(self.story_text_frame, text=self.dreams_of_eternal_happiness, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_look_around_julians_room_current_choice_res.place(x=self.story_text_x, y=self.story_text_y)
        
        self.display_go_back_to_looking_around = Button(self.choices_frame, text="1. Look around your room.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.EraseLookAroundJuliansRoomCurrentChoice)
        self.display_go_back_to_looking_around.place(x=self.choices_btn_padx, y=self.continue_btn_y)
        
    def DisplayMeditationCorner(self):
        
        self.display_look_around_julians_room.place_forget()
        self.display_look_around_julians_room_choice1.place_forget()
        self.display_look_around_julians_room_choice2.place_forget()
        self.display_look_around_julians_room_choice3.place_forget()   
        self.display_look_around_julians_room_choice4.place_forget()
        self.display_look_around_julians_room_choice5.place_forget()
        self.display_look_around_julians_room_choice6.place_forget()
        
        self.display_look_around_julians_room_current_choice_res = Label(self.story_text_frame, text=self.meditation_corner, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_look_around_julians_room_current_choice_res.place(x=self.story_text_x, y=self.story_text_y)
        
        self.display_go_back_to_looking_around = Button(self.choices_frame, text="1. Look around your room.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.EraseLookAroundJuliansRoomCurrentChoice)
        self.display_go_back_to_looking_around.place(x=self.choices_btn_padx, y=self.continue_btn_y)
        
    def DisplayWalkToYourBalcony(self):
        
        self.display_look_around_julians_room.place_forget()
        self.display_look_around_julians_room_choice1.place_forget()
        self.display_look_around_julians_room_choice2.place_forget()
        self.display_look_around_julians_room_choice3.place_forget()   
        self.display_look_around_julians_room_choice4.place_forget()
        self.display_look_around_julians_room_choice5.place_forget()
        self.display_look_around_julians_room_choice6.place_forget()
        
        self.display_look_around_julians_room_current_choice_res = Label(self.story_text_frame, text=self.balcony, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_look_around_julians_room_current_choice_res.place(x=self.story_text_x, y=self.story_text_y)
        
        self.display_go_back_to_looking_around = Button(self.choices_frame, text="1. Go back inside.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size),command=self.EraseLookAroundJuliansRoomCurrentChoice)
        self.display_go_back_to_looking_around.place(x=self.choices_btn_padx, y=self.continue_btn_y)

    def EraseLookAroundJuliansRoomCurrentChoice(self):
        
        self.display_look_around_julians_room_current_choice_res.place_forget()
        self.display_go_back_to_looking_around.place_forget()
        self.DisplayLookAroundJuliansRoom()
        
    def DisplayTheTestPage1(self):
        
        if hasattr(self, 'display_julians_room_desk'):
            self.display_julians_room_desk.place_forget()
        if hasattr(self, 'display_julians_room_desk_choice1'):
            self.display_julians_room_desk_choice1.place_forget()
        if hasattr(self, 'display_julians_room_desk_choice2'):
            self.display_julians_room_desk_choice2.place_forget()
        if hasattr(self, 'display_julians_room_desk_choice3'):
            self.display_julians_room_desk_choice3.place_forget()
        if hasattr(self, 'display_julians_room_desk_choice4'):
            self.display_julians_room_desk_choice4.place_forget()
        if hasattr(self, 'display_julians_room_desk_choice5'):
            self.display_julians_room_desk_choice5.place_forget()
        if hasattr(self, 'display_julians_room_desk_choice6'):
            self.display_julians_room_desk_choice6.place_forget()
        if hasattr(self, 'display_julians_room_desk_choice7'):
            self.display_julians_room_desk_choice7.place_forget()
        
        self.display_the_test_pg1 = Label(self.story_text_frame, text=self.the_test_pg1, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_test_pg1.place(x=self.story_text_x, y=self.story_text_y)
        
        self.dialogue_choices_frame.place(x=462, y=394)
        
        self.display_the_test_pg1_choice1 = Button(self.dialogue_choices_frame, text=self.the_test_pg1_choice1, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), wraplength=self.story_text_wrap, justify="left", command=self.DisplayTheTestPage1Res1)
        self.display_the_test_pg1_choice1.place(x=self.choices_btn_padx, y=0)
        
        self.display_the_test_pg1_choice2 = Button(self.dialogue_choices_frame, text=self.the_test_pg1_choice2, bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), wraplength=self.story_text_wrap, justify="left", command=self.DisplayTheTestPage1Res2)
        self.display_the_test_pg1_choice2.place(x=self.choices_btn_padx, y=231)
        
    def DisplayTheTestPage1Res1(self):
        
        self.dialogue_choices_frame.place_forget()
        self.display_the_test_pg1.place_forget()
        self.display_the_test_pg1_choice1.place_forget()
        self.display_the_test_pg1_choice2.place_forget()
        
        self.display_the_test_pg1_res1 = Label(self.story_text_frame, text=self.the_test_pg1_res1, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_test_pg1_res1.place(x=self.story_text_x, y=self.story_text_y)
        
        self.the_test_pg1_res1_continue_btn = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTestPage2)
        self.the_test_pg1_res1_continue_btn.place(x=self.choices_btn_padx, y=0)
        
    def DisplayTheTestPage1Res2(self):
        self.display_the_test_pg1.place_forget()
        self.dialogue_choices_frame.place_forget()
        self.display_the_test_pg1_choice1.place_forget()
        self.display_the_test_pg1_choice2.place_forget()
        
        self.display_the_test_pg1_res2 = Label(self.story_text_frame, text=self.the_test_pg1_res2, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_test_pg1_res2.place(x=self.story_text_x, y=self.story_text_y)
        
        self.the_test_pg1_res2_continue_btn = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTestPage2)
        self.the_test_pg1_res2_continue_btn.place(x=self.choices_btn_padx, y=0)
        
    
    def DisplayTheTestPage2(self):
        
        if hasattr(self, 'display_the_test_pg1_res1'):
            self.display_the_test_pg1_res1.place_forget()
            
        if hasattr(self, 'display_the_test_pg1_res2'):
            self.display_the_test_pg1_res2.place_forget()
            
        if hasattr(self, 'the_test_pg1_res1_continue_btn'):
            self.the_test_pg1_res1_continue_btn.place_forget()
            
        if hasattr(self, 'the_test_pg1_res2_continue_btn'):
            self.the_test_pg1_res2_continue_btn.place_forget()
            
        
        self.display_the_test_pg2 = Label(self.story_text_frame, text=self.the_test_pg2, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_test_pg2.place(x=self.story_text_x, y=self.story_text_y)
        
        self.the_test_pg2_continue_btn = Button(self.choices_frame, text="Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTestPage3)
        self.the_test_pg2_continue_btn.place(x=self.choices_btn_padx, y=0)
        
    def DisplayTheTestPage3(self):
        
        self.display_the_test_pg2.place_forget()
        self.the_test_pg2_continue_btn.place_forget()
        
        self.display_the_test_pg3 = Label(self.story_text_frame, text=self.the_test_pg3, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_test_pg3.place(x=self.story_text_x, y=self.story_text_y)
        
        self.display_the_test_pg3_choice1 = Button(self.choices_frame, text="The Desert of Forgetfulness", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTestPage4Desert)
        self.display_the_test_pg3_choice1.place(x=self.choices_btn_padx, y=0)
        self.display_the_test_pg3_choice2 = Button(self.choices_frame, text="The Palace of Empty Promises", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTestPage4Palace)
        self.display_the_test_pg3_choice2.place(x=self.choices_btn_padx, y=50)
        self.display_the_test_pg3_choice3 = Button(self.choices_frame, text="The Temple of Ancient Music", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTestPage4Ancient)
        self.display_the_test_pg3_choice3.place(x=self.choices_btn_padx, y=100)
        
        
    def DisplayTheTestPage4Desert(self):
        
        self.display_the_test_pg3.place_forget()
        self.display_the_test_pg3_choice1.place_forget()
        self.display_the_test_pg3_choice2.place_forget()
        self.display_the_test_pg3_choice3.place_forget()
        
        self.display_the_test_pg4 = Label(self.story_text_frame, text=self.the_test_pg4, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_test_pg4.place(x=self.story_text_x, y=self.story_text_y)
        
        self.choices_frame.place_forget()
        self.choices_frame.place(x=462, y=690)
        self.display_the_test_pg4_continue_btn = Button(self.choices_frame, text="Enter the dream.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheDesertOfForgetfulnessPage1)
        self.display_the_test_pg4_continue_btn.place(x=self.choices_btn_padx, y=0)
        
    def DisplayTheTestPage4Palace(self):
        
        self.display_the_test_pg3.place_forget()
        self.display_the_test_pg3_choice1.place_forget()
        self.display_the_test_pg3_choice2.place_forget()
        self.display_the_test_pg3_choice3.place_forget()
        
        self.display_the_test_pg4 = Label(self.story_text_frame, text=self.the_test_pg4, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_test_pg4.place(x=self.story_text_x, y=self.story_text_y)
        
        self.choices_frame.place_forget()
        self.choices_frame.place(x=462, y=690)
        self.display_the_test_pg4_continue_btn = Button(self.choices_frame, text="Enter the dream.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayThePalaceOfEmptyPromisesPage1)
        self.display_the_test_pg4_continue_btn.place(x=self.choices_btn_padx, y=0)
        
    def DisplayTheTestPage4Ancient(self):
        
        self.display_the_test_pg3.place_forget()
        self.display_the_test_pg3_choice1.place_forget()
        self.display_the_test_pg3_choice2.place_forget()
        self.display_the_test_pg3_choice3.place_forget()
        
        self.display_the_test_pg4 = Label(self.story_text_frame, text=self.the_test_pg4, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_test_pg4.place(x=self.story_text_x, y=self.story_text_y)
        
        self.choices_frame.place_forget()
        self.choices_frame.place(x=462, y=690)
        self.display_the_test_pg4_continue_btn = Button(self.choices_frame, text="Enter the dream.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTempleOfAncientMusicPage1)
        self.display_the_test_pg4_continue_btn.place(x=self.choices_btn_padx, y=0)
        
    def DisplayTheDesertOfForgetfulnessPage1(self):
        self.display_the_test_pg4.place_forget()
        self.display_the_test_pg4_continue_btn.place_forget()
        
        self.display_the_desert_of_forgetfulness_pg1 = Label(self.story_text_frame, text=self.the_desert_of_forgetfulness_pg1, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_desert_of_forgetfulness_pg1.place(x=self.story_text_x, y=self.story_text_y)
        
        
        self.continue_btn_the_desert_of_forgetfulness_pg1 = Button(self.choices_frame, text="1. Continue", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheDesertOfForgetfulnessPage2)
        self.continue_btn_the_desert_of_forgetfulness_pg1.place(x=self.choices_btn_padx, y=0)
                
    def DisplayTheDesertOfForgetfulnessPage2(self):
        
        self.display_the_desert_of_forgetfulness_pg1.place_forget()
        self.continue_btn_the_desert_of_forgetfulness_pg1.place_forget()
        
        self.display_the_desert_of_forgetfulness_pg2 = Label(self.story_text_frame, text=self.the_desert_of_forgetfulness_pg2, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_desert_of_forgetfulness_pg2.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_desert_of_forgetfulness_pg2 = Button(self.choices_frame, text="1. Take his hand.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheDesertOfForgetfulnessPage3)
        self.continue_btn_the_desert_of_forgetfulness_pg2.place(x=self.choices_btn_padx, y=0)
                        
    def DisplayTheDesertOfForgetfulnessPage3(self):
        
        self.display_the_desert_of_forgetfulness_pg2.place_forget()
        self.continue_btn_the_desert_of_forgetfulness_pg2.place_forget()
        
        self.display_the_desert_of_forgetfulness_pg3 = Label(self.story_text_frame, text=self.the_desert_of_forgetfulness_pg3, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_desert_of_forgetfulness_pg3.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_desert_of_forgetfulness_pg3 = Button(self.choices_frame, text="1. Close your eyes and listen.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheDesertOfForgetfulnessPage4)
        self.continue_btn_the_desert_of_forgetfulness_pg3.place(x=self.choices_btn_padx, y=0)
    
    def DisplayTheDesertOfForgetfulnessPage4(self):
        
        self.display_the_desert_of_forgetfulness_pg3.place_forget()
        self.continue_btn_the_desert_of_forgetfulness_pg3.place_forget()
        
        self.display_the_desert_of_forgetfulness_pg4 = Label(self.story_text_frame, text=self.the_desert_of_forgetfulness_pg4, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_desert_of_forgetfulness_pg4.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_desert_of_forgetfulness_pg4 = Button(self.choices_frame, text="1. Wake up from the dream.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayLastPage)
        self.continue_btn_the_desert_of_forgetfulness_pg4.place(x=self.choices_btn_padx, y=0)

        
    def DisplayThePalaceOfEmptyPromisesPage1(self):
        
        self.display_the_test_pg4.place_forget()
        self.display_the_test_pg4_continue_btn.place_forget()
        
        self.display_the_palace_of_empty_promises_pg1 = Label(self.story_text_frame, text=self.the_palace_of_empty_promises_pg1, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_palace_of_empty_promises_pg1.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_palace_of_empty_promises_pg1 = Button(self.choices_frame, text="1. Walk towards Samantha.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayThePalaceOfEmptyPromisesPage2)
        self.continue_btn_the_palace_of_empty_promises_pg1.place(x=self.choices_btn_padx, y=0)       
        
    def DisplayThePalaceOfEmptyPromisesPage2(self):
        
        self.display_the_palace_of_empty_promises_pg1.place_forget()
        self.continue_btn_the_palace_of_empty_promises_pg1.place_forget()
        
        self.display_the_palace_of_empty_promises_pg2 = Label(self.story_text_frame, text=self.the_palace_of_empty_promises_pg2, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_palace_of_empty_promises_pg2.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_palace_of_empty_promises_pg2 = Button(self.choices_frame, text="1. Why did you paint me playing music in a prison room, Samantha?", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayThePalaceOfEmptyPromisesPage3, wraplength=self.story_text_wrap, justify="left")
        self.continue_btn_the_palace_of_empty_promises_pg2.place(x=self.choices_btn_padx, y=0)
        
        
    def DisplayThePalaceOfEmptyPromisesPage3(self):
        
        self.display_the_palace_of_empty_promises_pg2.place_forget()
        self.continue_btn_the_palace_of_empty_promises_pg2.place_forget()
        
        self.display_the_palace_of_empty_promises_pg3 = Label(self.story_text_frame, text=self.the_palace_of_empty_promises_pg3, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_palace_of_empty_promises_pg3.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_palace_of_empty_promises_pg3 = Button(self.choices_frame, text="1. Sit down, play and sing the words of your next song; the first song of your new life.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayThePalaceOfEmptyPromisesPage4, wraplength=self.story_text_wrap, justify="left")
        self.continue_btn_the_palace_of_empty_promises_pg3.place(x=self.choices_btn_padx, y=0)
        
    
    def DisplayThePalaceOfEmptyPromisesPage4(self):
        
        self.display_the_palace_of_empty_promises_pg3.place_forget()
        self.continue_btn_the_palace_of_empty_promises_pg3.place_forget()
        
        self.display_the_palace_of_empty_promises_pg4 = Label(self.story_text_frame, text=self.the_palace_of_empty_promises_pg4, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_palace_of_empty_promises_pg4.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_palace_of_empty_promises_pg4 = Button(self.choices_frame, text="Wake up from the dream.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayLastPage)
        self.continue_btn_the_palace_of_empty_promises_pg4.place(x=self.choices_btn_padx, y=0)
        
    def DisplayTheTempleOfAncientMusicPage1(self):
    
        self.display_the_test_pg4.place_forget()
        self.display_the_test_pg4_continue_btn.place_forget()
        
        self.display_the_temple_of_ancient_music_pg1 = Label(self.story_text_frame, text=self.the_temple_of_ancient_music_pg1, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_temple_of_ancient_music_pg1.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_temple_of_ancient_music_pg1 = Button(self.choices_frame, text="1. Open the door.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTempleOfAncientMusicPage2)
        self.continue_btn_the_temple_of_ancient_music_pg1.place(x=self.choices_btn_padx, y=0)
        
        
    def DisplayTheTempleOfAncientMusicPage2(self):
        self.display_the_temple_of_ancient_music_pg1.place_forget()
        self.continue_btn_the_temple_of_ancient_music_pg1.place_forget()
        
        self.display_the_temple_of_ancient_music_pg2 = Label(self.story_text_frame, text=self.the_temple_of_ancient_music_pg2, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_temple_of_ancient_music_pg2.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_temple_of_ancient_music_pg2 = Button(self.choices_frame, text="1. Walk towards the center of the darkness where the breathtaking light awaits you.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTempleOfAncientMusicPage3, wraplength=self.story_text_wrap, justify="left")
        self.continue_btn_the_temple_of_ancient_music_pg2.place(x=self.choices_btn_padx, y=0)
        
        
    def DisplayTheTempleOfAncientMusicPage3(self):
        
        self.display_the_temple_of_ancient_music_pg2.place_forget()
        self.continue_btn_the_temple_of_ancient_music_pg2.place_forget()
        
        self.display_the_temple_of_ancient_music_pg3 = Label(self.story_text_frame, text=self.the_temple_of_ancient_music_pg3, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_temple_of_ancient_music_pg3.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_temple_of_ancient_music_pg3 = Button(self.choices_frame, text="1. Sing", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayTheTempleOfAncientMusicPage4)
        self.continue_btn_the_temple_of_ancient_music_pg3.place(x=self.choices_btn_padx, y=0)
        
    def DisplayTheTempleOfAncientMusicPage4(self):
        
        self.display_the_temple_of_ancient_music_pg3.place_forget()
        self.continue_btn_the_temple_of_ancient_music_pg3.place_forget()
        
        self.display_the_temple_of_ancient_music_pg4 = Label(self.story_text_frame, text=self.the_temple_of_ancient_music_pg4, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_the_temple_of_ancient_music_pg4.place(x=self.story_text_x, y=self.story_text_y)
        
        self.continue_btn_the_temple_of_ancient_music_pg4 = Button(self.choices_frame, text="Wake up from the dream.", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.DisplayLastPage)
        self.continue_btn_the_temple_of_ancient_music_pg4.place(x=self.choices_btn_padx, y=0)
        
    
    
    def DisplayLastPage(self):
        
        
        self.display_thank_you = Label(self.story_text_frame, text=self.credits_page_text, font=("Helvetica", self.story_text_size), bg=self.bgcolor, fg=self.text_color, wraplength=self.story_text_wrap, justify="left")
        self.display_thank_you.place(x=self.story_text_x, y=100)
        
        self.last_page_return_home_btn = Button(self.choices_frame, text="Return home", bg=self.bgcolor, fg=self.text_color, bd=0, font=("Helvetica", self.story_text_size), command=self.ReturnHome)
        self.last_page_return_home_btn.place(x=self.choices_btn_padx, y=0)
        
        if hasattr(self, 'display_the_desert_of_forgetfulness_pg4'):
            self.display_the_desert_of_forgetfulness_pg4.place_forget()

        if hasattr(self, 'continue_btn_the_desert_of_forgetfulness_pg4'):
            self.continue_btn_the_desert_of_forgetfulness_pg4.place_forget()
            
        if hasattr(self, 'display_the_palace_of_empty_promises_pg4'):
            self.display_the_palace_of_empty_promises_pg4.place_forget()
    
        if hasattr(self, 'continue_btn_the_palace_of_empty_promises_pg4'):
            self.continue_btn_the_palace_of_empty_promises_pg4.place_forget()
    
        if hasattr(self, 'display_the_temple_of_ancient_music_pg4'):
            self.display_the_temple_of_ancient_music_pg4.place_forget()
    
        if hasattr(self, 'continue_btn_the_temple_of_ancient_music_pg4'):
            self.continue_btn_the_temple_of_ancient_music_pg4.place_forget()
    
    
    def ReturnHome(self):
        
        
        #reset side menu
        
        if (self.side_menu_count == 1):
            self.music_on_off.place_forget()
            self.return_home.place_forget()
            self.side_menu_count = 0
        
        #forget all widgets in the story
        
        if hasattr(self, 'story_text_frame'):
            self.story_text_frame.place_forget()
        if hasattr(self, 'choices_frame'):
            self.choices_frame.place_forget()
        if hasattr(self, 'dialogue_choices_frame'):
            self.dialogue_choices_frame.place_forget()
        if hasattr(self, 'name_entry_text'):
            self.name_entry_text.place_forget()
        if hasattr(self, 'name_entry_field'):
            self.name_entry_field.destroy()
        if hasattr(self, 'get_name'):
            self.get_name.place_forget()
        if hasattr(self, 'get_name2'):
            self.get_name2.place_forget()
        if hasattr(self, 'get_name3'):
            self.get_name3.place_forget()
        if hasattr(self, 'open_menu'):
            self.open_menu.place_forget()
        if hasattr(self, 'side_menu_frame'):    
            self.side_menu_frame.place_forget()
        
        self.display_intro_pg1.place_forget()
        self.continue_btn_pg1.place_forget()
        self.display_intro_pg2.place_forget()
        self.continue_btn_pg2.place_forget()
        self.display_intro_pg3.place_forget()
        self.continue_btn_pg3.place_forget()
        
        self.display_intro_pg4.place_forget()
        self.continue_btn_pg4.place_forget()
        self.display_intro_pg5.place_forget()
        self.continue_btn_pg5.place_forget()
        
        self.display_intro_pg6_choice1.place_forget()
        self.display_intro_pg6_choice2.place_forget()
        self.continue_btn_pg6_res1_continue_btn.place_forget()
        self.continue_btn_pg6_res2_continue_btn.place_forget()
        self.display_intro_pg7.place_forget()
        self.continue_btn_pg7.place_forget()
        self.display_intro_pg8.place_forget()
        self.continue_btn_pg8.place_forget()
        
        #forget pages with character name
        
        if hasattr(self, 'display_intro_pg6'):
            self.display_intro_pg6.place_forget()
        
        if hasattr(self, 'display_intro_pg6_res1'):
            self.display_intro_pg6_res1.place_forget()
        
        if hasattr(self, 'display_intro_pg6_res2'):
            self.display_intro_pg6_res2.place_forget()
        
        if hasattr(self, 'display_julians_room_desk'):
            self.display_julians_room_desk.place_forget()
        
        if hasattr(self, 'display_julians_room_desk_choice7'):
            self.display_julians_room_desk_choice7.place_forget()
            
        if hasattr(self, 'display_look_around_julians_room_current_choice_res'):
            self.display_look_around_julians_room_current_choice_res.place_forget()
 
        if hasattr(self, 'close_book'):
            self.close_book.place_forget()
            
        if hasattr(self, 'display_go_back_to_looking_around'):
            self.display_go_back_to_looking_around.place_forget()
        
        if hasattr(self, 'display_julians_room_desk'):
            self.display_julians_room_desk.place_forget()
            
        if hasattr(self, 'display_julians_room_desk_choice7'): 
            self.display_julians_room_desk_choice7.place_forget()
            
        if hasattr(self, 'display_the_test_pg1'):
            self.display_the_test_pg1.place_forget()
            
        if hasattr(self, 'display_the_test_pg1_res1'):
            self.display_the_test_pg1_res1.place_forget()
            
        if hasattr(self, 'display_the_test_pg1_res2'):
            self.display_the_test_pg1_res2.place_forget()
            
        if hasattr(self, 'display_the_test_pg2'):
            self.display_the_test_pg2.place_forget()
            
        if hasattr(self, 'display_the_test_pg3'):
            self.display_the_test_pg3.place_forget()
            
        if hasattr(self, 'display_the_test_pg4'):
            self.display_the_test_pg4.place_forget()
        
        
        if hasattr(self, 'display_the_test_pg1_choice1'):
            self.display_the_test_pg1_choice1.place_forget()
            
        if hasattr(self, 'display_the_test_pg1_choice2'):
            self.display_the_test_pg1_choice2.place_forget()
            
        if hasattr(self, 'display_the_test_pg3_choice1'):
            self.display_the_test_pg3_choice1.place_forget()
        
        if hasattr(self, 'display_the_test_pg3_choice2'):
            self.display_the_test_pg3_choice2.place_forget()
            
        if hasattr(self, 'display_the_test_pg3_choice3'):
            self.display_the_test_pg3_choice3.place_forget()
            
        if hasattr(self, 'the_test_pg2_continue_btn'):
            self.the_test_pg2_continue_btn.place_forget()
            
        if hasattr(self, 'display_the_test_pg4_continue_btn'):
            self.display_the_test_pg4_continue_btn.place_forget()
            
        if hasattr(self, 'display_the_test_pg4_continue_btn'):
            self.display_the_test_pg4_continue_btn.place_forget()
            
        # the dreams
            
        # the desert of forgetfulness
        
        if hasattr(self, 'display_the_desert_of_forgetfulness_pg1'):
            self.display_the_desert_of_forgetfulness_pg1.place_forget()
            
        if hasattr(self, 'display_the_desert_of_forgetfulness_pg2'):
            self.display_the_desert_of_forgetfulness_pg2.place_forget()
            
        if hasattr(self, 'display_the_desert_of_forgetfulness_pg3'):
            self.display_the_desert_of_forgetfulness_pg3.place_forget()
            
        if hasattr(self, 'display_the_desert_of_forgetfulness_pg4'):
            self.display_the_desert_of_forgetfulness_pg4.place_forget()
        
        if hasattr(self, 'continue_btn_the_desert_of_forgetfulness_pg1'):
            self.continue_btn_the_desert_of_forgetfulness_pg1.place_forget()
            
        if hasattr(self, 'continue_btn_the_desert_of_forgetfulness_pg2'):
            self.continue_btn_the_desert_of_forgetfulness_pg2.place_forget()
            
        if hasattr(self, 'continue_btn_the_desert_of_forgetfulness_pg3'):
            self.continue_btn_the_desert_of_forgetfulness_pg3.place_forget()
            
        if hasattr(self, 'continue_btn_the_desert_of_forgetfulness_pg4'):
            self.continue_btn_the_desert_of_forgetfulness_pg4.place_forget()
        
        # the palace of empty promises
        
        if hasattr(self, 'display_the_palace_of_empty_promises_pg1'):
            self.display_the_palace_of_empty_promises_pg1.place_forget()
        
        if hasattr(self, 'display_the_palace_of_empty_promises_pg2'):
            self.display_the_palace_of_empty_promises_pg2.place_forget()
            
        if hasattr(self, 'display_the_palace_of_empty_promises_pg3'):
            self.display_the_palace_of_empty_promises_pg3.place_forget()
        
        if hasattr(self, 'display_the_palace_of_empty_promises_pg4'):
            self.display_the_palace_of_empty_promises_pg4.place_forget()
            
        if hasattr(self, 'continue_btn_the_palace_of_empty_promises_pg1'):
            self.continue_btn_the_palace_of_empty_promises_pg1.place_forget()
        
        if hasattr(self, 'continue_btn_the_palace_of_empty_promises_pg2'):
            self.continue_btn_the_palace_of_empty_promises_pg2.place_forget()
            
        if hasattr(self, 'continue_btn_the_palace_of_empty_promises_pg3'):
            self.continue_btn_the_palace_of_empty_promises_pg3.place_forget()
            
        if hasattr(self, 'continue_btn_the_palace_of_empty_promises_pg4'):
            self.continue_btn_the_palace_of_empty_promises_pg4.place_forget()
        
    
        
        # the temple of ancient music
        
        if hasattr(self, 'display_the_temple_of_ancient_music_pg1'):
            self.display_the_temple_of_ancient_music_pg1.place_forget()
        
        if hasattr(self, 'display_the_temple_of_ancient_music_pg2'):
            self.display_the_temple_of_ancient_music_pg2.place_forget()
            
        if hasattr(self, 'display_the_temple_of_ancient_music_pg3'):
            self.display_the_temple_of_ancient_music_pg3.place_forget()
            
        if hasattr(self, 'display_the_temple_of_ancient_music_pg4'):
            self.display_the_temple_of_ancient_music_pg4.place_forget()
            
        if hasattr(self, 'continue_btn_the_temple_of_ancient_music_pg1'):
            self.continue_btn_the_temple_of_ancient_music_pg1.place_forget()
        
        if hasattr(self, 'continue_btn_the_temple_of_ancient_music_pg2'):
            self.continue_btn_the_temple_of_ancient_music_pg2.place_forget()
        
        if hasattr(self, 'continue_btn_the_temple_of_ancient_music_pg3'):
            self.continue_btn_the_temple_of_ancient_music_pg3.place_forget()
        
        if hasattr(self, 'continue_btn_the_temple_of_ancient_music_pg4'):
            self.continue_btn_the_temple_of_ancient_music_pg4.place_forget()
                     
        
        self.display_julians_room_desk_choice1.place_forget()
        self.display_julians_room_desk_choice2.place_forget()
        self.display_julians_room_desk_choice3.place_forget()
        self.display_julians_room_desk_choice4.place_forget()
        self.display_julians_room_desk_choice5.place_forget()
        self.display_julians_room_desk_choice6.place_forget()
        
        self.display_the_sacrifices_of_an_artist.place_forget()
        self.display_why_do_we_love_music.place_forget()
        self.display_be_carefree_in_your_creativity.place_forget()
        self.display_many_instruments_one_mind.place_forget()
        self.display_julians_journal_entry.place_forget()
        self.display_look_around_julians_room.place_forget()
        
        if hasattr(self, 'be_carefree_close_book_frame'):
            self.be_carefree_close_book_frame.place_forget()
                
        self.display_look_around_julians_room_choice1.place_forget()
        self.display_look_around_julians_room_choice2.place_forget()
        self.display_look_around_julians_room_choice3.place_forget()
        self.display_look_around_julians_room_choice4.place_forget()
        self.display_look_around_julians_room_choice5.place_forget()
        self.display_look_around_julians_room_choice6.place_forget()
        
        """self.returning_home = True
        self.story_text_frame.place_forget()
        self.choices_frame.place_forget()
        self.open_menu.place_forget()
        self.side_menu_frame.place_forget()
        """
        
        #last page
        
        if hasattr(self, 'display_thank_you'):
            self.display_thank_you.place_forget()
        
        if hasattr(self, 'last_page_return_home_btn'):
            self.last_page_return_home_btn.place_forget()
        
        self.story_title.place(x=self.story_title_x, y=self.story_title_y)        
        self.main_menu_frame.place(x=self.main_menu_frame_x, y=self.main_menu_frame_y)
        self.start_option.place(x=self.start_option_x, y=self.start_option_y)
        self.how_to_play_option.place(x=self.how_to_play_option_x, y=self.how_to_play_option_y)
        self.scenes_option.place(x=self.scenes_option_x, y=self.scenes_option_y)
        self.exit_option.place(x=self.exit_option_x, y=self.exit_option_y)

root = Tk()
ATestOnMusicAndIntuition(root)

root.mainloop()

bottom of page