Re: I need help with making my calculator

2017-05-20 Thread Steve D'Aprano
On Sat, 20 May 2017 11:42 am, gars...@gmail.com wrote: > m using Python 3.4.2 > This is my code: Please read this first: http://sscce.org/ And then indent the "calc" method so that it is part of the class: > def calc(self, display): > try: > display.set(eval(display.get())) >

Re: I need help with making my calculator

2017-05-19 Thread MRAB
On 2017-05-20 02:42, gars...@gmail.com wrote: m using Python 3.4.2 This is my code: from tkinter import* def iCalc(source, side): storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue") storeObj.pack(side=side, expand=YES, fill=BOTH) return storeObj def button

I need help with making my calculator

2017-05-19 Thread garsink
m using Python 3.4.2 This is my code: from tkinter import* def iCalc(source, side): storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue") storeObj.pack(side=side, expand=YES, fill=BOTH) return storeObj def button (source, side, text, command=None): storeObj=