tkinter questions: behavior of StringVar, etc

Alan G Isaac alan.isaac at gmail.com
Mon Mar 30 08:59:11 EDT 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.

Thanks,
Alan



More information about the Python-list mailing list