From 6440fd88eadd46d39111e3b92164021f257778a9 Mon Sep 17 00:00:00 2001 From: Julien Miotte Date: Thu, 29 Nov 2012 01:36:55 +0100 Subject: [PATCH] Amending docstring: precision on non-fullscreen ModalViews/Popups --- kivy/uix/modalview.py | 5 +++-- kivy/uix/popup.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/kivy/uix/modalview.py b/kivy/uix/modalview.py index 92ebe7a18..e9fc6f0a0 100644 --- a/kivy/uix/modalview.py +++ b/kivy/uix/modalview.py @@ -8,8 +8,9 @@ The :class:`ModalView` widget is used to create modal views. By default, the view will cover the whole "parent" window. Remember that the default size of a Widget is size_hint=(1, 1). If you don't -want your view to be fullscreen, deactivate the size_hint and use a specific -size attribute. +want your view to be fullscreen, either use lower than 1 size hints (for +instance size_hint=(.8, .8)) or deactivate the size_hint and use fixed size +attributes. Examples -------- diff --git a/kivy/uix/popup.py b/kivy/uix/popup.py index 61fbca346..42f1d5f98 100644 --- a/kivy/uix/popup.py +++ b/kivy/uix/popup.py @@ -12,8 +12,9 @@ will cover the whole "parent" window. When you are creating a popup, you must at a minimum set a :data:`Popup.title` and a :data:`Popup.content` widget. Remember that the default size of a Widget is size_hint=(1, 1). If you don't -want your popup to be fullscreen, deactivate the size_hint and use a specific -size attribute. +want your popup to be fullscreen, either use lower than 1 size hints (for +instance size_hint=(.8, .8)) or deactivate the size_hint and use fixed size +attributes. .. versionchanged:: 1.4.0