Your question isn't too simple. Someone who knows Kivy could spot and correct the issue from a mile away.
That said, here's my answer:
Principle you violated in your code:
You can't store elements (like the Button) in non-layout (non-container) elements (like the TextInput)
Where to go from here:
Here's a sample code I created, to get you started. There's more to be done with it, i.e.
- having the buttons at a longer width, instead of two tiny buttons when the screen is small
- center-aligning or top-aligning the code
But I think this'll get you in the right direction.
#! HintApp.py
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.textinput import TextInput
class GoogleLikeSetup(BoxLayout):
pass
class HintApp(App):
def build(self):
GoogleLikeSetup()
if __name__ == '__main__':
HintApp().run()
#! HintApp.kv
GoogleLikeSetup:
<GoogleLikeSetup>:
id: test
size_hint_y: None
height: '160dp'
padding: 20
spacing: 20
orientation: 'vertical'
BoxLayout:
size_hint_y:
id: google_search
TextInput:
hint_text: 'Eingabe'
size_hint_x: 85
BoxLayout:
spacing: 40
padding: root.width * 0.20, 0
Button:
text: 'x'
Button:
text: 'x'
For more information on layouts check out:
Thanks for posting on the Kivy forum. Be sure to pay this back by answering someone else's question sometime :)