From 43b5b93474c96dc0a27e22faaed05826ed9509fc Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 17 Apr 2013 12:18:31 +0200 Subject: [PATCH] Force main app to respect the configured window size --- erdslangetjie/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.34.1