Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

first_screen.kv

Blame
  • Forked from Brady James Garvin / separate_screens
    Up to date with the upstream repository.
    first_screen.kv 440 B
    <FirstScreen>:
        BoxLayout:
            orientation: 'vertical'
            Label:
                text: 'This is the first screen.'
            Button:
                text: 'This button prints a number.'
                on_press: root.print_number()  # In a custom widget's Kv, `root` refers to the custom widget.
            Button:
                text: 'Change…'
                on_press: app.open_second_screen()  # But `app` still refers to the application object.