> input = "hello"
> input += " world"
> print input

this i know. im wondering how to handle the variable in the actual
program. this exception i get:
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python25\lib\lib-tk\Tkinter.py", line 1403, in __call__
    return self.func(*args)
  File "C:\Users\saftarn\Desktop\guiexperiments\calculatorGUI.py",
line 48, in <lambda>
    self.btnDisplay = Button(self,text='+',command=lambda
n="+":self.Display(n),width=1,height=1)
  File "C:\Users\saftarn\Desktop\guiexperiments\calculatorGUI.py",
line 92, in Display
    str = number + str
UnboundLocalError: local variable 'str' referenced before assignment


> A caculator program is pretty complex.  Based on your rudimentary
> questions, I don't think you have enough programming experience to
> tackle a project like that yet.

nah ill be fine. im new to python, not to programming.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to