Tip 556: Add oo like widgets to Tk

Difference between version 2 and 3 - Previous - Next
This page is for discussion of http://core.tcl.tk/tips/doc/trunk/tip/556.md%|%Tip 556%|%

bll 2019-12-18:  Is there a proof-of-concept example widget?
----
'''[RZ] - 2019-12-18 15:16:53'''

::tko::frame ::tko::labelframe and ::tko::toplevel with same functionality like original widgets.See also in the man page https://core.tcl-lang.org/tk/doc/tip-556/doc/tko.n.md%|%tko.n%|%
===
oo::class create W {::tko initfrom ::tko::frame}
oo::define W method xy {args} {puts $args}
W .w
.w xy
===