diff --git a/examples/demo/showcase/main.py b/examples/demo/showcase/main.py index 3fab413f8..9419397b5 100755 --- a/examples/demo/showcase/main.py +++ b/examples/demo/showcase/main.py @@ -27,7 +27,7 @@ class ShowcaseApp(App): show_sourcecode = BooleanProperty(False) sourcecode = StringProperty() screen_names = ListProperty([]) - higherarchy = ListProperty([]) + hierarchy = ListProperty([]) def build(self): self.title = 'hello world' @@ -75,8 +75,8 @@ class ShowcaseApp(App): self.root.ids.sm.switch_to(self.load_screen(idx), direction='left') self.update_sourcecode() - def go_higherarchy_previous(self): - ahr = self.higherarchy + def go_hierarchy_previous(self): + ahr = self.hierarchy if len(ahr) == 1: return if ahr: diff --git a/examples/demo/showcase/showcase.kv b/examples/demo/showcase/showcase.kv index 96003aeee..a81d0628a 100644 --- a/examples/demo/showcase/showcase.kv +++ b/examples/demo/showcase/showcase.kv @@ -52,7 +52,7 @@ BoxLayout: ActionPrevious: with_previous: (False if sm.current_screen.name == 'button' else True) if sm.current_screen else False title: 'Showcase' + ('' if not app.current_title else ' - {}'.format(app.current_title)) - on_release: app.go_higherarchy_previous() + on_release: app.go_hierarchy_previous() ActionSpinner: id: spnr @@ -98,4 +98,4 @@ BoxLayout: on_current_screen: spnr.text = args[1].name idx = app.screen_names.index(args[1].name) - if idx > -1: app.higherarchy.append(idx) + if idx > -1: app.hierarchy.append(idx)