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)
评论列表
文章目录