Can not add button, etc in form. Form has 4 frames and one canvas. Can generate form, but button is not on frame?
---------------------------------------
---------------------------------------------------
---------------------------------------
Code:
from tkinter import *
def Plot():
root = Tk()
root.geometry('1340x690+00+00')
root.title('Equity bSelection')
# top border controls
frame1 = Frame(width=1340, height=200, bg="light green", colormap="new", borderwidth=0)
#Button(frame1,text='Plot List', command=sys.exit).pack(side=LEFT) #command=dispplotlist
#but1=Button.config(height=3, font=('times',20,'bold'))
frame1.pack(side=TOP,padx=0,pady=0)
# bottom border time scale
frame2 = Frame(width=1340, height=50, bg="light green", colormap="new", borderwidth=0)
frame2.pack(side=BOTTOM,padx=0,pady=0)
# left border controls
frame3 = Frame(width=50, height=450, bg="orange", colormap="new", borderwidth=0)
frame3.pack(side=LEFT,padx=0,pady=0)
# right border scales for $, and non-$
frame4 = Frame(width=100, height=450, bg="silver", colormap="new", borderwidth=0)
frame4.pack(side=RIGHT,padx=0,pady=0)
# charted lines
canvis1 = Canvas(root, width=1240, height=450, bg='light gray', borderwidth=0)
canvis1.pack(padx=0,pady=0)
Plot()
mainloop()
Comment