def __init__(self, f_bottom_bar_changer: callable, f_bottom_bar_adder: callable):
""" Constructor.
:param f_bottom_bar_changer: change the bottom bar main text.
:param f_bottom_bar_adder: add to the actions list in bottom bar.
"""
# will be set from UI class
self.window = None
self.document = None
self.view = None
self.tab = None
# initialize the settings class
DictonatorSettings()
# Using like a global function
self.bottom_bar_text_set = f_bottom_bar_changer
self.bottom_bar_add = f_bottom_bar_adder
GLib.threads_init()
self.recogniser = SpeechRecogniser(self.action_handler)
评论列表
文章目录