Am 09.02.18 um 09:00 schrieb Arjen Markus:
> I tried to display a variable from a TclOO object in a button, like:
>
> method show {} {
> variable mytext
>
> set mytext "Some text"
>
> pack [button .b -textvariable mytext]
> }
I suggest you take a look at a "real" megawidget framework. So far,
there is no blessed "TkOO" in existence, but the "snot" port comes close:
http://chiselapp.com/user/aspect/repository/snot/index
In snot, [my variable mytext] is supposed to work. If it doesn't than
that's a bug which should be fixed. In addition snot also does all the
other stuff like renaming the original widget command and binding the
destruction sequence etc.
Christian