pep8 cleanup
authorNeil <neil@dip.sun.ac.za>
Wed, 17 Apr 2013 14:07:57 +0000 (16:07 +0200)
committerNeil <neil@dip.sun.ac.za>
Wed, 17 Apr 2013 14:07:57 +0000 (16:07 +0200)
erdslangetjie/__main__.py
erdslangetjie/constants.py

index ce2864b484b9bfddcb6786c618be851edac7ed76..aa261e447d0ae52feb4ba678befc5960aa5bbda2 100644 (file)
@@ -256,9 +256,9 @@ class Screen(Widget):
                 pos=((1026 - 200) / 2 - 100, 100))
         self.stop_button.bind(on_ref_press=self.app.stop_app)
         self.start_button = Label(
-                text="[ref=start][color=00ff66]" + self.START + "[/color][/ref]",
+                text="[ref=start][color=00ff66]%s[/color][/ref]" % self.START,
                 font_size=30,
-                markup = True, size=(200, 40),
+                markup=True, size=(200, 40),
                 pos=((1026 - 200) / 2 + 100, 100))
         self.start_button.bind(on_ref_press=self.app.start_game)
         self.add_widget(self.stop_button)
index 85041cf7819e50249e7a2052c3fe17d4d762ecdf..2b68d17513e75998e3c7ccbd529db7248d4b40ab 100644 (file)
@@ -7,9 +7,9 @@ from kivy.logger import Logger, LoggerHistory
 QUIET = False  # kivy logging - change for release
 
 if QUIET:
-   for hdlr in Logger.handlers[:]:
-       if not isinstance(hdlr, LoggerHistory):
-           Logger.removeHandler(hdlr)
+    for hdlr in Logger.handlers[:]:
+        if not isinstance(hdlr, LoggerHistory):
+            Logger.removeHandler(hdlr)
 
 from kivy.utils import platform
 from kivy.config import Config