main:
from kivymd.app import MDApp
class DeliveryToday(MDApp):
def build(self):
return
DeliveryToday().run()
kv
MDScreen :
canvas.before:
Color:
rgba: (.4,.4,.4,1)
RoundedRectangle:
size : self.width/2, self.height/3
pos : self.center_x - self.width/4 , self.center_y - self.height/6
radius: [(40, 40), (40, 40), (40, 40), (40, 40)]
I am a beginner at kivy and just started making this round rectangle. I wish to add text ON the round rectangle saying "Welcome" but am a bit confused on where and how I should add it as obviously it won't work on the canvas, or will it? (I am a tkinter person and it works on the canvas there so its a bit weird).
Also I wish to change the background of the rectangle from to blue (it is currently white) and tried a couple things there like background_color and stuff but that doesn't seem to work either.
Any advice on how I could do either of this would be appreciated. Thank you!