Immediately following the line
self.str1 = StringVar()
you have
self.str1 = "0"
at which point self.str1 is a string, not a StringVar. Maybe you mean
self.str1.set("0")
?
Kent
Asrarahmed Kadri wrote:
>
> Traceback is as under:
>
> Traceback (most recent call last):
Traceback is as under:
Traceback (most recent call last): File "C:\python\lib\lib-tk\Tkinter.py", line 1345, in __call__ return self.func(*args) File "calculator_version2.py", line 105, in
self.buttonPlu = Button(self.container3,text='+',command = lambda: self.oprClick('+',self.str1.g