From 8719670033c3f584b26641173346b01bd316cdaa Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Mon, 2 May 2011 10:09:29 +0200 Subject: [PATCH] window: remove any reference to KIVY_SHADOW, this is not used anymore at all. Window is created as soon as kivy.core.window is imported + as soon as opengl is used. Closes #126 --- doc/autobuild.py | 1 - kivy/core/window/__init__.py | 19 +++---------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/doc/autobuild.py b/doc/autobuild.py index 1c340ab51..b0cc9a5d4 100644 --- a/doc/autobuild.py +++ b/doc/autobuild.py @@ -19,7 +19,6 @@ import sys import re from glob import glob -os.environ['KIVY_SHADOW_WINDOW'] = '0' import kivy # force loading of kivy modules diff --git a/kivy/core/window/__init__.py b/kivy/core/window/__init__.py index add0ca90a..20d9690bb 100644 --- a/kivy/core/window/__init__.py +++ b/kivy/core/window/__init__.py @@ -19,23 +19,10 @@ from kivy.event import EventDispatcher class WindowBase(EventDispatcher): '''WindowBase is a abstract window widget, for any window implementation. - .. warning:: - - The parameters are not working in normal case. Because at import, Kivy - create a default OpenGL window, to add the ability to use OpenGL - directives, texture creation.. before creating Window. - If you don't like this behavior, you can include before the very first - import of Kivy :: - - import os - os.environ['KIVY_SHADOW'] = '0' - - This will forbid Kivy to create the default window ! - - :Parameters: - `fullscreen`: bool - Make window as fullscreen + `fullscreen`: str, one of ('0', '1', 'auto', 'fake') + Make window as fullscreen, check config documentation for more + explaination about the values. `width`: int Width of window `height`: int