On Tue, 21 Aug 2001 11:34:43 -0500 (CDT) Damon Courtney <[EMAIL PROTECTED]> 
wrote/El d> > how can i clear the contents of a canvas?or a text widget.
> > how can i destroy a top level window?
> 
> Naveen,
> 
> To clear the contents of a text widget:
> 
> $widget delete 0.0 end

That would be     $widget delete 1.0 end   to be correct?

John

> 
> 
> To clear the contents of a canvas:
> 
> eval $widget delete [$widget find all]
> 
> 
> To destroy a toplevel window:
> 
> destroy $window
> 
> 
> Hope that helps,
> 
> Damon
> 
> 
> _______________________________________________
> vtcl-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/vtcl-user
> 
> 

_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to