source, method

$obj info source $method, $obj info method $method – returns source code for $method. Example:

% $line1 info source appear
::obj::method line appear canvas {
  $canvas delete $self
  $canvas create line [$self cget -coords] -tags $self
}
%

© Wolf-Dieter Busch | Home | Sitemap | Urheber | A-Z