In one sense this was easy for us because all the widgets involved are custom built of our own making.
Doing the same thing with standard Tk widgets in a portable manor would be much more difficult, unless the Tk widgets provided the appropriate hooks.