Comment supprimer tous les éléments enfants?

Je suis d'écriture basé sur l'interface du programme à l'aide de Python tkinter de la bibliothèque. Je suis confronté à un problème: j'ai besoin de supprimer tous enfants éléments (sans suppression d'un élément parent, qui dans mon cas est colorsFrame).

Mon 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)

Comment puis-je y parvenir?

OriginalL'auteur Roman Nazarkin | 2013-04-14