mostly completed formula editor

need tkinter replacement