fontcolor configurable self entry config(font=font make display larger self entry config(justify=right on rightnot left for row in self operandsfrm frame(selftopfor char in rowbutton(frmleftcharlambda op=charself onoperand(op)fg=fgbg=bgfont=fontfrm frame(selftopfor char in self operatorsbutton(frmleftcharlambda op=charself onoperator(op)fg=bgbg=fgfont=fontfrm frame(selftopbutton(frmleft'dot 'lambdaself onoperand(')button(frmlefte'lambdaself text set(self text get()+' +')button(frmlefte'lambdaself text set(self text get()+' -')button(frmleft'cmd 'self onmakecmdlinebutton(frmleft'help'self helpbutton(frmleft'quit'self quitfrom guimixin frm frame(selfbottombutton(frmleft'eval 'self onevalbutton(frmleft'hist 'self onhistbutton(frmleft'clear'self oncleardef onclear(self)self eval clear(self text set(' 'self erase def oneval(self)self eval shiftopnd(self text get()self eval closeall(self text set(self eval popopnd()self erase last or only opnd apply all optrs left need to popoptr nextdef onoperand(selfchar)if char ='('self eval open(self text set('('clear text next self erase elif char =')'self eval shiftopnd(self text get()last or only nested opnd self eval close(pop here toooptr nextself text set(self eval popopnd()self erase elseif self eraseself text set(charclears last value elseself text set(self text get(charelse append to opnd pycalca calculator program/object