error new Control thing?!

This commit is contained in:
Michael S. 2024-07-02 18:44:27 +02:00
parent 710c865753
commit 420980649d
5 changed files with 8 additions and 44 deletions

View file

@ -6,7 +6,7 @@ def get_time():
t = datetime.now()
return [t.year, t.month, t.day, t.hour, t.minute, t.second]
class History(ft.UserControl):
class History(ft.Control):
def __init__(self) -> None:
super().__init__()
self.settings, self.history = file_handler.load(self)

View file

@ -11,7 +11,7 @@ def get_time():
def random_emoji():
return choice("🍎🍐🍊🍋🍌🍉🍇🍓🍈🍒🍑🍍🥝🥭🥑🍅🍆🥒🥕🥬🌽🥔🍠🌰🥜🍯🥐🍞🥖🥨🥯🧀🥚🍳🥓🧄🧅🥞🧇🍤🍗🍖🍕🌭🍔🍟🥙🌮🌯🥗🥘🍝🍜🦪🍲🍥🍣🍱🍛🍚🧆🍙🍘🍢🍡🍧🍨🍦🍰🎂🍮🍭🍬🍫🍿🍩🍪🥮🧁🥛🧈🍼☕🍵🍶🍺🍻🥂🍷🥃🍸🍹🍾🧉🧃🧊🧂🥄🍴")
class Home(ft.UserControl):
class Home(ft.Control):
def __init__(self, history_instance: History) -> None:
super().__init__()
self.history_instance = history_instance

View file

@ -1,5 +1,5 @@
import flet as ft
class Settings(ft.UserControl):
class Settings(ft.Control):
def __init__(self) -> None:
super().__init__()