> Thus far, everything works fine unless I'm trying the Deposit or Withdrawal > functions. (I know they're different, but both give roughly the same error.) > Whenever I attempt one of these functions I get the following error message: > > > Exception in Tkinter callback > Traceback (most recent call last): > File "C:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__ > return self.func(*args) > File "C:\Python24\AEOpaypal.py", line 27, in Deposit > user, passw, balance = accountlist[whichSelected()] > File "C:\Python24\AEOpaypal.py", line 11, in whichSelected > return int(select.curselection()[0]) > IndexError: tuple index out of range
"IndexError: tuple index out of range" means that you are trying to access an element of a tuple which does not exist. In your case int(select.curselection()[0]) raises the exception so your tuple select.curselection() doesn't have a 0th entry which means it's empty. HTH, Daniel -- http://mail.python.org/mailman/listinfo/python-list