error new Control thing?!
This commit is contained in:
parent
710c865753
commit
420980649d
5 changed files with 8 additions and 44 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import flet as ft
|
||||
class Settings(ft.UserControl):
|
||||
class Settings(ft.Control):
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue