Quick search

Table Of Contents

PageLayout

The PageLayout class allow to create a simple multiple 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

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

swipe_threshold is a NumericProperty, default to .5.

page

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

border is a NumericProperty, default to 0.