I am trying to read a text file which is very big and I need a Scale
widget for that. So, I am using this code:
from Tkinter import *
tk = Tk()
tk.title("Report")
f = open("hola.txt", "r").read()
Label(tk, text=f).grid(row=0)
w = Scale(tk, from_=0, to=100)
w.pack()
tk.mainloop()
It's not opening the file. It's only showing me the scale, but this code opens file perfectly but isn't with the scale:
from Tkinter import *
tk = Tk()
tk.title("Vulnerability Report")
f = open("hola.txt", "r").read()
Label(tk, text=f).grid(row=0)
tk.mainloop()