Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing brackets for print statements #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions game.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Game(object):

def __init__(self):
pygame.init()
print "Pygame started."
print ("Pygame started.") #missing a bracket for the prit statment

#set up screen and background
self.screen = pygame.display.set_mode(
Expand All @@ -38,7 +38,7 @@ def __init__(self):

#Drawing a handy MessageBoard widget
#Can use these for any text.
print "Configuring tboard MessageBoard params."
print ("Configuring tboard MessageBoard params.") #syntax error no brackets
self.tboard_text = ['This is a test.']
self.tboard_x = 120
self.tboard_y = 120
Expand All @@ -56,7 +56,7 @@ def __init__(self):
font=('comic sans', 18),
font_color=pygame.Color('yellow'))

print "Moving on to buttons..."
print ("Moving on to buttons...") #syntax error missing brackts

self.button_bgimgs = ['images/x.png']
#self.button_width = self.button_bgimgs[0].get_width()
Expand All @@ -73,7 +73,7 @@ def __init__(self):
imgnames=self.button_bgimgs,
attached=self.tboard)

print "Created close button."
print ("Created close button.") #syntax error: no brackets

self.togglebtn_bgimgs = ['images/toggle1.png', 'images/toggle2.png']

Expand All @@ -85,7 +85,7 @@ def __init__(self):
text="Toggle",
textcolor=(255,255,255))

print "Created toggle button."
print ("Created toggle button.") #syntax error no brackets

self.clockImg = Images(self.screen,
'images/clock.png',
Expand Down