I would to know how can I resize text font in Text widget in Tkinter without resize text box.
Here is my code:
from tkinter import *
root = Tk()
def font_size(value):
text.configure(font =("Comic Sans MS", H_Scale.get()))
print(H_Scale.get())
text = Text(root, width=10, height=10)
text.pack()
H_Scale = Scale(root, from_=1, to=72,orient=HORIZONTAL,command=font_size)
H_Scale.place(x=1, y=100)
root.geometry("400x240")
root.mainloop()
While I change scale bar value I.
While I change scale bar value I expect to change only font size but as you can see whole Text widget resize.
I appreciate if let me know what is the problem and show me the remedy.