Feb-06-2017, 11:21 AM
Hello Guys,
Here i am creating a GUI like Search engine.The problem what i am getting is the scroll bar is not fixed with Text widget.Even though i used sticky.
Thanks in advance.
Here i am creating a GUI like Search engine.The problem what i am getting is the scroll bar is not fixed with Text widget.Even though i used sticky.
Thanks in advance.
from Tkinter import * root = Tk() options = ["10","20","30"] var = StringVar(root) var.set('10') Value = Label(root,text="Value:", font="-weight bold") Value.grid(row=0,column=0,sticky="W") Search = Entry(root,width=50) Search.grid(row=0,column=1) Top = Label(root,text="TOP",font="-weight bold") Top.grid(row=0,column=2,sticky="W") Dropdownlist = OptionMenu(root,var,*options) Dropdownlist.grid(row=0,column=3,padx=5,sticky="W") Go = Button(root,text="GO",width=5) Go.grid(row=0,column=4,sticky="W") Reset = Button(root,text="RESET",width=5) Reset.grid(row=0,column=5,padx=5,sticky="W") Result = Text(root,height=20,width=69) Result.place(x=10, y=40) Scroll = Scrollbar(root,command=Result.yview) Scroll.grid(row=1,column=6,padx=12,sticky='NS') Result.config(yscrollcommand=Scroll.set) root.mainloop()