comparison pyntnclick/main.py @ 661:5dc866e1d71d pyntnclick

Misc pep8 and pyflakes fixes
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 12 Feb 2012 15:00:53 +0200
parents c77d6aa29bee
children f67bc162d69e
comparison
equal deleted inserted replaced
660:dbec226debe3 661:5dc866e1d71d
134 self._initial_scene = opts.scene 134 self._initial_scene = opts.scene
135 self._debug_rects = opts.rects 135 self._debug_rects = opts.rects
136 if self.constants.debug and opts.list_scenes: 136 if self.constants.debug and opts.list_scenes:
137 # FIXME: Horrible hack to avoid image loading issues for 137 # FIXME: Horrible hack to avoid image loading issues for
138 # now 138 # now
139 display = pygame.display.set_mode(self.constants.screen, 139 pygame.display.set_mode(self.constants.screen,
140 SWSURFACE) 140 SWSURFACE)
141 list_scenes(self.initial_state) 141 list_scenes(self.initial_state)
142 sys.exit(0) 142 sys.exit(0)
143 if self.constants.debug and opts.rect_drawer: 143 if self.constants.debug and opts.rect_drawer:
144 if opts.scene is None: 144 if opts.scene is None:
145 print 'Need to supply a scene to use the rect drawer' 145 print 'Need to supply a scene to use the rect drawer'
146 sys.exit(1) 146 sys.exit(1)
147 display = make_rect_display() 147 make_rect_display()
148 # FIXME: Remove Albow from here 148 # FIXME: Remove Albow from here
149 try: 149 try:
150 self.engine = RectEngine(self, self.initial_state, opts.scene, 150 self.engine = RectEngine(self, self.initial_state, opts.scene,
151 opts.detail) 151 opts.detail)
152 except KeyError: 152 except KeyError: