I have found this code about scrollbar is just working fine.
from tkinter import * master = Tk() scrollbar = Scrollbar(master) scrollbar.pack(side=RIGHT,
use "end" instead of END
from tkinter import * self.lst1.insert("end", str(i))