tkinter questions: behavior of StringVar, etc

Alan G Isaac alan.isaac at
Mon Mar 30 14:59:11 CEST 2009

On 3/30/2009 3:37 AM Eric Brunel apparently wrote:
> The string representation of Tkinter objects seems to be a design principle in
> this module: it'll always evaluate to the representation this object has at
> tcl level. Since a XxxVar is represented by an actual variable at tcl level,
> its string representation is the name of this variable. I guess it's quite
> easier to build the commands that'll be passed to the tcl interpreter this
> way: you don't have to check the type of the objects you handle, but pass them
> through str and insert the result directly in the command.

This is a helpful answer: it "feels" right and can be
explored further.


More information about the Python-list mailing list