def run(self):
				try:
					#print "run thread manage frame"

					frame = frame_message()
					self._dad._list_frame_messages.append((self._user_id, self._user_name, frame))
					frame._dad = self._dad
					frame.set_message_view(self._user_name, msg)
					frame.set_talk_user(self._user_id, self._user_name)
					frame.show()
					
					#print "end thread manage frame"
				except Exception, detail:
					print detail
	def open_window_talk(self, treeview, path, view_column):
		"""Abre uma nova janela de conversa"""
		field, item = treeview.get_selection().get_selected()
		user = field.get_value(item, 0)

		for i in range(len(self._list_users)):
			if self._list_users[i][1] == user:
				index_user = i;
				break

		user_id_1   = self._list_users[index_user][0]
		user_name_1 = self._list_users[index_user][1]
		
		# verifica se ja existe uma janela aberta
		for i in self._list_frame_messages:
			user_id_2 = i
			if (user_id_2 == user_id_1):
				return # nao deixa criar outra janela			

		frame_1 = frame_message()
		self._list_frame_messages.append((user_id_1, user_name_1, frame_1))
		frame_1._dad = self
		frame_1.set_talk_user(user_id_1, user_name_1)
		frame_1.show()