Note that you have to have read permission on fstab (Code not tested so post back if there are errors that you can not fix) Pmw has a ScrolledFrame if you want to install it https://pypi.org/project/Pmw/
def fstab(): records=open("/etc/fstab", "r").readlines() listbox = Listbox(mywin, height=6, width=20, font=('Fixed', 14), foreground='blue' ) scrolly = Scrollbar(mywin, command=listbox.yview ) listbox.configure(yscrollcommand=scrolly.set) for item in records: listbox.insert("end", item) scrolly.pack(side="right", fill="y")