Code: Select all
from tkinter import *
def callcommand():
top = Tk()
CommandLabel = Label(top, text="command", width=12 , height= 5 )
CommandLabel.grid(row=1, column=0)
EntryLabel = Entry(top, relief=RIDGE, bd = 10)
EntryLabel .grid(row=1, column=1)
SubmitButton = Button(top, text="Submit", width=12, height= 2, command=callcommand)
SubmitButton.grid(row=2, column=1, sticky=S+W)
top.mainloop()Note : modified post
