Merge pull request #827 from mike-perdide/fixing_modal_docstring

Amending docstring: precision on non-fullscreen ModalViews/Popups
This commit is contained in:
Mathieu Virbel 2012-11-28 17:16:05 -08:00
commit c833ba453c
2 changed files with 6 additions and 4 deletions

View File

@ -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
--------

View File

@ -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