The answer to this question is to replace the command :
widget.variable.get()
by this one :
widget.getvar(widget.cget("variable"))
Thanks to jasonharper for this.