Start hooking up editor functions
[erdslangetjie.git] / erdslangetjie / constants.py
index fb9336b1daed87abda270852e0d1edcdd8856e6c..06d25fb9298fcff07caa68c055affa7f83a4331e 100644 (file)
@@ -1,12 +1,21 @@
-from kivy.utils import platform
-from kivy.config import Config
+import kivy
+
+kivy.require('1.6.0')
+
+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)
+
+from kivy.utils import platform
+from kivy.config import Config
+
 if platform() != 'android':
     TILE_SIZE = 38
-    Config.set('graphics', 'width', '1026')
-    Config.set('graphics', 'height', '760')
 else:
     TILE_SIZE = 64
-    Config.set('graphics', 'fullscreen', 'True')
+    Config.set('graphics', 'fullscreen', 'auto')