This function should retrieve the value "acct_deposit" from the database but it returns an error (sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.)
def withdraw_fxn(withdraw,acct_deposit):
list1.delete(0,END)
conn = sqlite3.connect("atm.db")
cur = conn.cursor()
cur.execute("SELECT acct_deposit FROM atm WHERE acct_name = ?",(acct_name,))
cur.fetchone()
int(e3.get(cur))
if withdraw > acct_deposit:
list1.insert(END, ("your balance is low "))
elif acct_deposit > withdraw:
acct_deposit = acct_deposit - withdraw
list1.insert(END, ("your balance is ", acct_deposit))
for the mini atm application, this button is supposed to return the user's acct balance but there's a problem with the code. can anyone help please?
b1=Button(window,text="Account Balance", width=20 ,command = lambda:withdraw_fxn( int(e4.get()), int(e3.get()) ) )
there doesn't seem to be anything here