May 10th, 2013, 09:53 PM
Join Date: May 2013
Time spent in forums: 2 h 38 m 46 sec
Reputation Power: 0
I'm trying to get my button to stick to my frame, but I can't get it to place on the proper frame.
from Tkinter import *
print "Run button clicked"
run_button = Button(top_frame, text="Run", command=run).pack()
root = Tk()
top_frame = Frame(root, bg="red", height=50, width=450).pack(side=TOP)
My code is causing my button to be placed on the "root" widget. I want it on my "top_frame" frame. I thought I was packing it onto the correct frame. How do I get it on "top_frame"?