コード例 #1
0
    def __init__(self, ui):
        Curses_Page.__init__(self, "Home")

        self.main_ui = ui
        self.community = get_plugin_by_type(PLUGIN_TYPE_COMMUNITY)

        self.community.register_ui(self)

        self.com_events = []
        self.user_events = []

        self.main_ui.show_page(self)
コード例 #2
0
    def __init__(self, ui):
        Curses_Page.__init__(self, 'Messaging')

        self.main_ui = ui
        self.community = get_plugin_by_type(PLUGIN_TYPE_COMMUNITY)
        self.messaging = get_plugin_by_type(PLUGIN_TYPE_MESSAGING)

        self.messaging.register_ui(self)

        self.community.community_gui.register_com_event('Chat', self.start_messaging_cb)

        self.display = []

        self.buffer = ''
        self.active_conversation = None