-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
34 lines (26 loc) · 810 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from kivy.lang import Builder
from kivymd.app import MDApp
from kivy.core.window import Window
from kivymd.uix.card import MDCard, MDCardSwipe
from kivymd.uix.floatlayout import MDFloatLayout
from kivymd.uix.screen import MDScreen
from kivymd.uix.list import MDList
Window.size = (480, 620)
class AddReceita(MDCard):
...
class CardReceita(MDCardSwipe):
...
class ReceitaInformacoes(MDScreen):
...
class ListaReceitas(MDList):
def adicionar_receita(self):
self.add_widget(CardReceita())
class TelaPrincipal(MDFloatLayout):
def adicionar_receita(self):
self.add_widget(AddReceita())
class AssaCuca(MDApp):
def build(self):
self.receita_texto = ''
self.theme_cls.primary_palette = "Pink"
return Builder.load_file("main.kv")
AssaCuca().run()