From: Neil Date: Wed, 17 Apr 2013 10:18:31 +0000 (+0200) Subject: Force main app to respect the configured window size X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=43b5b93474c96dc0a27e22faaed05826ed9509fc;p=erdslangetjie.git Force main app to respect the configured window size --- diff --git a/erdslangetjie/__main__.py b/erdslangetjie/__main__.py index cd17e87..95fdf1b 100644 --- a/erdslangetjie/__main__.py +++ b/erdslangetjie/__main__.py @@ -5,7 +5,6 @@ import pygame kivy.require('1.6.0') from kivy.app import App -from kivy.core.window import Window from kivy.uix.widget import Widget from kivy.logger import Logger, LoggerHistory from kivy.uix.relativelayout import RelativeLayout @@ -48,6 +47,9 @@ class GameWindow(RelativeLayout): self.player.pos = self.level_obj.enter_pos if platform() != 'android': # Very hack'ish + # We need to delay this import until after the window creation by + # the app, else our size config doesn't work + from kivy.core.window import Window self.keyboard = Window.request_keyboard(self._closed, self) self.keyboard.bind(on_key_down=self._on_key_down)