I tried to copy a toplevel (it has a frame that contains all its widgets) by
copying the frame and pasting it into a new toplevel.  The toplevel was fairly
complicated with bindings and aliases for most entry widgets.  In the process I
noticed a few problems:

Binding:
  1. vTcl seems to interpret any bindings during the paste process.  It throws
errors if there are any bad commands even if they are commented out.
  2. At the same time it can't see any globals.  So if you have a binding that
refers to $widget or any other global you can never copy/paste the associated
widget (even if you comment out every line of the binding).

Alias problems:
  1. You can give multiple widgets the same alias (although the paste normally
strips off the alias to avoid this).  $widget(x) then returns the path to the
newer alias.
  2. If you then delete the second widget with the same alias you're in for a
torrent of error messages until you can fix the widget array.

Reply via email to