The line that Lewis Carroll uses to develop politeness as a character trait for Alice is:
"so she sat down, and said 'Thank you' rather sadly."
This line shows Alice's consideration and politeness in acknowledging Humpty Dumpty's intention to entertain her, even though she may not be enthusiastic about it.