feat:added download task card to download screen which marks the end of it

This commit is contained in:
Benex254
2024-08-05 09:46:54 +03:00
parent fbd45d0a97
commit 87f22fcd1d
7 changed files with 76 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
from kivy.properties import StringProperty
from kivymd.uix.boxlayout import MDBoxLayout
# TODO: add a progress bar to show the individual progress of each task
class TaskCard(MDBoxLayout):
anime_task_name = StringProperty()
episodes_to_download = StringProperty()
def __init__(self, anime_title:str, episodes:str, *args, **kwargs):
super().__init__(*args, **kwargs)
self.anime_task_name = f"{anime_title}"
self.episodes_to_download = f"Episodes: {episodes}"