Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/physics.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2010-10-08 15:25:04 (GMT)
committer Gary Martin <gary@garycmartin.com>2010-10-08 15:25:04 (GMT)
commit2161743d9147092cfaaa6b4faf275325e00e5c4f (patch)
treeeba2c3cba2ee418323c8a296c14e19c84bc6cf98 /physics.py
parent4dfc1de9c92a6607f137dc7f7a1333d155d88eb2 (diff)
Quick pass through pylint.
Diffstat (limited to 'physics.py')
-rw-r--r--physics.py4
1 files changed, 2 insertions, 2 deletions
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)