History Screen¶
Implements HistoryMain, the root widget of the history screen.
-
class
acg.screens.history.HistoryRoot(**kwargs)[source]¶ Bases:
kivy.uix.floatlayout.FloatLayoutRoot widget of the history screen.
-
class
acg.screens.history.TextInputDialog(**kwargs)[source]¶ Bases:
acg.custom_widgets.dialogs.CustomDialogDialog with one text field.
-
default_text¶ defaults to “”, the default text entry in the :~kivymd.uix.MDTextField:.
Type: StringProperty
-
-
acg.screens.history.app_busy(func)[source]¶ Call function in new thread and set app.busy =
Truein the meantime.
-
acg.screens.history.not_implemented_toast(*_)[source]¶ Display toast notifying user that the function is not implemented.
-
acg.screens.history.set_word_state(word, state)[source]¶ Set state in the data-base entry of the card of the current template.
-
acg.screens.history.widget_by_id(string)[source]¶ Get widget by string of ids, separated by “/”.
Parameters: string – Strings of ids, separated by “/”. The first one can be a screen name. Returns: widget - Examples
>>> print(widget_by_id("single_word/word_prop").__name__) MDApp.get_running_app().root.get_screen("single_word").children[ 0].ids.word_prop