actionhandler.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Dict-O-nator 作者: theawless 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号