Код калькулятора 1

from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput

class CalkApp(App):
    def build(self):
        root_widget = BoxLayout(orientation='vertical')
        textinput1 = TextInput(text='', multiline=False)
        textinput2 = TextInput(text='', multiline=False)

        output_label = Label(size_hint_y=1) = Button(text='+')

        button_mult = Button(text='*')
        button_div = Button(text='/')
        button_minus = Button(text='-')
        clear_button = Button(text='clear', size_hint_y=None,height=100)

        root_widget.add_widget(textinput1)
        root_widget.add_widget(textinput2)
        root_widget.add_widget(output_label)
        root_widget.add_widget(button_add)
        root_widget.add_widget(button_mult)
        root_widget.add_widget(button_div)
        root_widget.add_widget(button_minus)
        root_widget.add_widget(clear_button)

        return root_widget

CalkApp().run()