Quick search

Table Of Contents

PageLayout

The PageLayout class is used to create a simple multi-page layout, in a way that allows easy flipping of one page to another using borders.

PageLayout doesn’t honor size_hint or pos_hint in any way currently.

New in version 1.8.0.

example:

PageLayout:
    Button:
        text: 'page1'

    Button:
        text: 'page2'

    Button:
        text: 'page3'
class kivy.uix.pagelayout.PageLayout(**kwargs)[source]

Bases: kivy.uix.layout.Layout

PageLayout class. See module documentation for more information.

border

Width of the border used around the current page to display the previous/next page when needed.

border is a NumericProperty, defaults to 0.

page

Currently displayed page.

page is a NumericProperty, defaults to 0.

swipe_threshold

Thresold to the swipe action triggering, as percentage of the widget size.

swipe_threshold is a NumericProperty, defaults to .5.