<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">from kivymd.app import MDApp
from kivy.lang import Builder
from kivy.properties import ObjectProperty
from kivy.core.window import Window
from kivymd.toast import toast

from kivy.uix.screenmanager import Screen


class MonAppliScreen(Screen) :
	mon_bouton = ObjectProperty()
	mon_label = ObjectProperty()

	def __init__(self, **kwargs):
		super().__init__(**kwargs)
		#Window.size = (800,600)
		toast("C'est parti !")

	def bouton_cliquer(self) :
		self.mon_label.text = "Tu as cliquÃ© sur le bouton !"



class MonAppli(MDApp):
	title = "Mon appli"
	#icon = "Images/icon.png" 

	def build(self):
		self.theme_cls.theme_style = "Light"
		self.theme_cls.primary_palette = "Teal"

		return Builder.load_file("design.kv")



if __name__ == '__main__':
	MonAppli().run()</pre></body></html>