mirror of https://github.com/kivy/kivy.git
typo
parent
0bb86f24f7
commit
0dfe9c8834
|
@ -10,7 +10,7 @@ The idea of this snippet is to control the ScreenManager from a different widget
|
||||||
* *Store a screen name in every Tab*
|
* *Store a screen name in every Tab*
|
||||||
* *Ask ScreenManager to change the Screen in TabbedPanels `switch_to` method.*
|
* *Ask ScreenManager to change the Screen in TabbedPanels `switch_to` method.*
|
||||||
|
|
||||||
```
|
```
|
||||||
#!python
|
#!python
|
||||||
from kivy.app import App
|
from kivy.app import App
|
||||||
from kivy.uix.tabbedpanel import TabbedPanel
|
from kivy.uix.tabbedpanel import TabbedPanel
|
||||||
|
@ -53,7 +53,7 @@ Builder.load_string('''
|
||||||
|
|
||||||
class RootWidget(TabbedPanel):
|
class RootWidget(TabbedPanel):
|
||||||
|
|
||||||
mnager = ObjectProperty(None)
|
manager = ObjectProperty(None)
|
||||||
|
|
||||||
def switch_to(self, header):
|
def switch_to(self, header):
|
||||||
# set the Screen manager to load the appropriate screen
|
# set the Screen manager to load the appropriate screen
|
||||||
|
|
Loading…
Reference in New Issue