Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

erasing widgets from a tabnotebook page

Status
Not open for further replies.

mmasten

Programmer
Feb 9, 2000
1
US
Here's the situation:<br>
<br>
I have created a tabnotebook widget with, so far, 2 pages. I want to find out how to clear everything off of page 2 and then redraw certain widgets on page 2 depending on what the user has selected on page 1. I cannot simply destroy the widgets because I have way too many variations on how the second page could be formatted, unless there was a command like destroy $NotePagePath.* which could take out everything without specifying individual widgets. Does anybody have any ideas?
 
You can do almost as you were talking:<br>
<br>
foreach child \<br>
[winfo children $NotePagePath] {<br>
destroy $child<br>
}<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top