Skip to content

Commit

Permalink
fix greeting location. call to welcome window
Browse files Browse the repository at this point in the history
  • Loading branch information
notwopr committed Apr 19, 2023
1 parent 3759a51 commit 2c607cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion SEM_APPRENTICE/SEM_Apprentice.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def __init__(self):
self.start_message = "I am learning :D"
self.end_message = "I stopped learning. Please come back soon :_)"
self.abort_message = "I understand. There is always next time :)"
self.greeting = "Hi! I am SEM Apprentice. Welcome :)"
self.copyright_block = [
"SEM_APPRENTICE",
"VERSION: 2.5.0.0",
Expand Down Expand Up @@ -114,7 +115,7 @@ def prepare(self):
def splash_welcome(self):
# Save a reference to the original stdout - this is so that stdout can return to console window
original_stdout = sys.stdout
welcome_window = Welcome(self.copyright_block).window
welcome_window = Welcome(self.greeting, self.copyright_block).window
self.prepare()
time.sleep(3)
welcome_window.close()
Expand Down
4 changes: 2 additions & 2 deletions SEM_APPRENTICE/window_design.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def __init__(self, title, question):
)

class Welcome(Window):
def __init__(self, copyright):
self.greeting = "Hi! I am SEM Apprentice. Welcome :)"
def __init__(self, greeting, copyright):
self.greeting = greeting
self.copyright = copyright

# WINDOW CONTENTS
Expand Down

0 comments on commit 2c607cc

Please sign in to comment.