def connect(self):
        self._connect()
        self._handshake()

        self.reactor = LoginReactor(self)
        self._start_network_thread()
        login_start_packet = packets.LoginStartPacket()
        login_start_packet.name = self.auth_token.profile.name
        self.write_packet(login_start_packet)
Called when the name trait is changed on an action.
dataset/ETHPy150Open ammaraskar/pyCraft/minecraft/networking/connection.py/Connection.connect--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/action/action_item.py/_Tool._on_action_name_changed