I wrote the following code to quickly grab and display information from Wikipedia. It works great unless the Wiki summary contains more information than the box can display. I thought adding sticky = N+S+E+W would fix this but it doesn't appear to be doing anything. How can I update this code to make it scroll if there is too much information to display in the text box all at once?
enter code here
import sys
from tkinter import *
import wikipedia
def search_wiki():
txt = text.get() # Get what the user entered into the box
txt = wikipedia.page(txt) # Search Wikipedia for results
txt = txt.summary # Store the returned information
lblText = Label(main, text=txt,justify=LEFT,wraplength=600, fg='black',
bg='white', font='times 12 bold').grid(row = 50,
column = 1, sticky=N+S+E+W)
main = Tk()
main.title("Search Wikipedia")
main.geometry('750x750')
main.configure(background='ivory3')
text = StringVar()
lblSearch = Label(main, text = 'Search String:').grid(row = 0, column = 0,
padx = 0, pady = 10)
entSearch = Entry(main, textvariable = text, width = 50).grid(row = 0,
column = 1)
btn = Button(main, text = 'Search', bg='ivory2', width = 10,
command = search_wiki).grid(row = 0, column = 10)
main.mainloop()
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)