2 Jul 2008 07:25
Clearing out a Frame
Alexnb <alexnbryan <at> gmail.com>
2008-07-02 05:25:51 GMT
2008-07-02 05:25:51 GMT
I have an app that has a base frame, and some other frames inside of that
base frame. My question is if there is some way to clear out the base frame.
Meaning leaving an empty baseframe. See I have a function that pulls up
frames inside that base frame. The problem comes when I hit a button(this
button is the button that first shows the frames inside the base frame,
basically you click it and the internal frames show up.) and then I hit it
again, I get some weird stuff. Okay, this is getting really complicated. I
really just want to know if I can clear out a frame, and still be able to
fill it back up again. If you want ot uunderstand further I'll post the code
at the bottom and just run it, then hit the "Word List" button, then hit it
again, you'll see what I am talking about.
Here's the code:
from Tkinter import*
class App:
def __init__(self, parent):
self.parent = parent
self.parent.geometry("500x250")
#----------------------------Contstants for Buttons------------
button_padx = "2m"
button_pady = "1m"
#--------------------------end constants-----------------------
self.baseContainer = Frame(self.parent)
(Continue reading)
RSS Feed