Esempio n. 1
0
    def on_my_state_changed(self, statebox):
        tree_iter = statebox.get_active_iter()
        if tree_iter != None:
            model = statebox.get_model()
            state = model[tree_iter][0].lower()

            UserInputParser.state_changed(StateCodes.get_code_by_state(state))
Esempio n. 2
0
 def append_active_chat(self, chat_title):
     self.active_chats.append(chat_title)
     self.active_chats.friend_state_changed(chat_title, StateCodes.get_state_by_code(Shared.get_peer_by_username(chat_title).state))
     self.active_chats.select_by_username(chat_title)