June 2015
Intermediate to advanced
206 pages
4h 32m
English
The PageLayout works in a different manner from other layouts. It is a dynamic layout, in the sense that it allows flipping through pages using its borders. The idea is that its components are stacked in front of each other, and we can just see the one that is on top.
The following example illustrates its use, taking advantage of the example from the previous section. The Python code (pagelayout.py) is presented here:
169. # File name: pagelayout.py 170. import kivy 171. 172. from kivy.app import App 173. from kivy.uix.pagelayout import PageLayout 174. 175. class MyPageLayout(PageLayout): 176. pass 177. 178. class PageLayoutApp(App): 179. def build(self): 180. return MyPageLayout() 181. 182. if __name__=="__main__": 183. ...
Read now
Unlock full access