Skip to content
Snippets Groups Projects
Select Git revision
  • 34339231c76b0afbfc44495769df12e4602f630b
  • main default protected
2 results

triangle.kv

Blame
  • triangle.kv 1.60 KiB
    BoxLayout:
        orientation: 'vertical'
        Widget:
            size_hint: (1.0, 2.0)
        BoxLayout:
            orientation: 'horizontal'
            size_hint: (1.0, 0.0)
            height: sp(40)
            Widget:
            Label:
                text: 'Side A:'
                font_size: sp(36)
            Widget:
                size_hint: (0.25, 1.0)
            TextInput:
                id: a
                multiline: False
                write_tab: False
                text: ''
                font_size: sp(24)
                on_text: app.update()
            Widget:
        BoxLayout:
            orientation: 'horizontal'
            size_hint: (1.0, 0.0)
            height: sp(40)
            Widget:
            Label:
                text: 'Side B:'
                font_size: sp(36)
            Widget:
                size_hint: (0.25, 1.0)
            TextInput:
                id: b
                multiline: False
                write_tab: False
                text: ''
                font_size: sp(24)
                on_text: app.update()
            Widget:
        BoxLayout:
            orientation: 'horizontal'
            size_hint: (1.0, 0.0)
            height: sp(40)
            Widget:
            Label:
                text: 'Side C:'
                font_size: sp(36)
            Widget:
                size_hint: (0.25, 1.0)
            TextInput:
                id: c
                multiline: False
                write_tab: False
                text: ''
                font_size: sp(24)
                on_text: app.update()
            Widget:
        Widget:
        BoxLayout:
            orientation: 'horizontal'
            Label:
                text: app.classification
                font_size: sp(36)
                text_size: self.size
                halign: 'center'
        Widget:
            size_hint: (0.0, 1.5)