title: How to delete all children elements?
body: <p>I am writing a GUI-based program using Python's <code>tkinter</code> library. I am facing a problem: I need to delete <strong>all</strong> children elements (without deleting a parent element, which in my case is <code>colorsFrame</code>). </p>
  
  <p>My code:</p>
  
  <pre><code>infoFrame = Frame(toolsFrame, height = 50, bd = 5, bg = 'white')
  colorsFrame = Frame(toolsFrame)
  
  # adding some elements
  
  infoFrame.pack(side = 'top', fill = 'both')
  colorsFrame.pack(side = 'top', fill = 'both')
  
  # set the clear button
  Button(buttonsFrame, text = "Clear area",
                 command = self.clearArea).place(x = 280, y = 10, height = 30)
  </code></pre>
  
  <p>How do I achieve this?</p>