gui.py 文件源码

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

项目:high-quality-chat 作者: b6938236 项目源码 文件源码
def __init__(self, **kwargs):
        super(HQC, self).__init__(**kwargs)
        self.config = hqc_config.get_instance(file="conn.conf")
        self.phone = HQCPhone(self.config)
        self.chat_client = None

        # Recorder object from audio module
        self.recorder = None
        # Recording directory
        self.storage_dir = self.config.get('AudioSettings', 'recording_location')
        self.session_name = datetime.now().strftime(constants.DATETIME_SESSION)
        self.audio_file_location = os.path.join(self.storage_dir, self.session_name)
        if not os.path.exists(self.audio_file_location):
            os.makedirs(self.audio_file_location)

        # color for gui text
        self.dark_blue = '2939b0'

    # Build should only handle setting up GUI-specific items
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号