MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / build

Method build

gui-apps/app_kivy.py:31–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 hierarchy = ListProperty([])
30
31 def build(self):
32 self.title = 'hello world'
33 Clock.schedule_interval(self._update_clock, 1 / 60.)
34 self.screens = {}
35 self.available_screens = sorted([
36 'Buttons', 'ToggleButton', 'Sliders', 'ProgressBar', 'Switches',
37 'CheckBoxes', 'TextInputs', 'Accordions', 'FileChoosers',
38 'Carousel', 'Bubbles', 'CodeInput', 'DropDown', 'Spinner',
39 'Scatter', 'Splitter', 'TabbedPanel + Layouts', 'RstDocument',
40 'Popups', 'ScreenManager'])
41 self.screen_names = self.available_screens
42 curdir = dirname(__file__)
43 self.available_screens = [join(curdir, 'data', 'screens',
44 '{}.kv'.format(fn).lower()) for fn in self.available_screens]
45 self.go_next_screen()
46
47 def on_pause(self):
48 return True

Callers

nothing calls this directly

Calls 1

go_next_screenMethod · 0.95

Tested by

no test coverage detected