summaryrefslogtreecommitdiffstats
path: root/gui-project/cards.py
diff options
context:
space:
mode:
Diffstat (limited to 'gui-project/cards.py')
-rw-r--r--gui-project/cards.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui-project/cards.py b/gui-project/cards.py
index f175aa1..42a08b0 100644
--- a/gui-project/cards.py
+++ b/gui-project/cards.py
@@ -20,6 +20,9 @@ class CardComponent():
return self.back
+# ui.colors(back="#c4bcdb")
+
+
class CardUI():
def __init__(self, parent_ui, card : CardComponent):
self.parent_ui = parent_ui
@@ -35,7 +38,6 @@ class CardUI():
def init_front(self):
with self.row_parent:
- ui.colors(frontc='#bcdbc6')
with ui.card().classes('bg-frontc') as self.front:
ui.markdown("**Front**")
ui.separator()
@@ -45,7 +47,6 @@ class CardUI():
def init_back(self):
with self.row_parent:
- ui.colors(back="#c4bcdb")
with ui.card().classes('bg-back') as self.back:
ui.markdown("_Back_")
ui.separator()
@@ -55,7 +56,6 @@ class CardUI():
ui.button("Ain't got it", on_click=lambda: self.user_clicked_incorrect())
self.back.set_visibility(False)
-
def show_front(self):
self.back.set_visibility(False)
self.front.set_visibility(True)