Files
FastAnime/anixstream/View/CrashLogScreen/crashlog_screen.py
Benedict Xavier Wanyonyi 7e9060bb2d renamed app to anixstream
2024-05-31 18:12:02 +03:00

22 lines
663 B
Python

from kivy.properties import StringProperty
from View.base_screen import BaseScreenView
from Utility.utils import read_crash_file
from Utility.kivy_markup_helper import color_text, bolden
class CrashLogScreenView(BaseScreenView):
"""The crash log screen"""
crash_text = StringProperty()
def __init__(self, **kw):
super().__init__(**kw)
if crashes := read_crash_file():
self.crash_text = crashes
else:
self.crash_text = color_text(
f"No Crashes so far :) and if there are any in the future {bolden('please report! Okay?')}",
self.theme_cls.primaryColor,
)