From 2161743d9147092cfaaa6b4faf275325e00e5c4f Mon Sep 17 00:00:00 2001 From: Gary Martin Date: Fri, 08 Oct 2010 15:25:04 +0000 Subject: Quick pass through pylint. --- (limited to 'physics.py') diff --git a/physics.py b/physics.py index 658f0b7..97119da 100644 --- a/physics.py +++ b/physics.py @@ -48,10 +48,11 @@ class PhysicsGame: self.clock = pygame.time.Clock() self.font = pygame.font.Font(None, 24) # font object self.canvas = olpcgames.ACTIVITY.canvas + self.in_focus = True # Create the name --> instance map for components self.toolList = {} for c in tools.allTools: - self.toolList[c.name] = c(self) + self.toolList[c.name] = c(self) self.currentTool = self.toolList[tools.allTools[0].name] # Set up the world (instance of Elements) self.box2d = box2d @@ -78,7 +79,6 @@ class PhysicsGame: self.show_fake_cursor = True def run(self): - self.in_focus = True while True: for event in pygame.event.get(): self.currentTool.handleEvents(event) -- cgit v0.9.1