in reply to TK: bgcolor
get or set? It looks like the first two answers are doing a set, but the OP says get.
The correct command to get the color is $mw->cget(-background).