[Tutor] Scrollbar
Pooja Bhalode
poojabhalode11 at gmail.com
Mon Mar 27 12:22:24 EDT 2017
Hi, I am going wrong somewhere in the following code. here is given a
simplified code of the work that I am trying to do.
The scrollbar goes not work in the window. Can someone please let me know
what the issue is.
Thank you
Code:
from Tkinter import *
root = Tk()
root.geometry("500x400")
scrollbar = Scrollbar(root, orient = "vertical")
scrollbar.grid(column = 5,sticky = W)
for i in range(0,20):
Label(root, text = i).grid(row = 1+i, column = 1, sticky = W)
root.mainloop()
More information about the Tutor
mailing list