I am a beginner to py and kv and i try to figure out how to make the text inside a label or a button to resize automatically when i resize the black kivy window.
import kivy
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.label import Label
from kivy.app import App
class QuizzWindow(BoxLayout):
def __init__(self, **kwargs):
super(QuizzWindow, self).__init__(**kwargs)
self.cols = 1
self.add_widget(Label(text="quizz"))
self.add_widget(Button(text="press"))
class MyApp(App):
def build(self):
return QuizzWindow()
if __name__ == "__main__":
MyApp().run()
Thanks for your help !