gui.py 文件源码

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

项目:LalkaChat 作者: DeForce 项目源码 文件源码
def __init__(self, parent, **kwargs):
        self.chat_modules = kwargs.get('chat_modules')
        wx.Panel.__init__(self, parent, size=wx.Size(-1, 24))
        self.SetBackgroundColour('cream')

        self.chats = {}
        self.border_sizer = self._create_sizer()

        for chat_name, chat_settings in self.chat_modules.items():
            if chat_name == 'chat':
                continue
            if chat_settings['class'].get_queue('status_frame'):
                for item in chat_settings['class'].get_queue('status_frame'):
                    if item['action'] == 'add':
                        self.set_chat_online(chat_name, item['channel'])

                for item in chat_settings['class'].get_queue('status_frame'):
                    if item['action'] == 'set_online':
                        self.set_online(chat_name, item['channel'])

        self.Fit()
        self.Layout()
        self.Show(True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号