I am making a gui with python Tkinter. Now I need to show a polynomial function in result Label, and that's where i get stuck. To show the polynomial i have to write the power as superscript. Now I can use a Text box and a positive offset value to write superscript like,
root=Tk() l=Text(root) l.tag_configure("s", offset=5) l.insert(INSERT,"X","","2","s") l.grid(row=0) root.mainloop()
But I can't figure out how to do it for a n-th order polynomial. I have the coefficients in a list, and i want to make the polynomial an insert it into the Label/Text widget. Is there a easy way to do it? Also I know I can use matplotlib's latex text rendering to show the polynomial in a matplotlib graph window, but i don't want that here.