I am trying to complete an ATM program using GUI in Python.
Problem:
At the start, my program generates a window of Tkinter that takes PIN as input from entry widgets using 0-9 buttons.Entry button takes
Entry (root, textvariable=text_Input)
while text_input=StringVar()
program compares the entered PIN with the data available in the files.
If PIN matches, my program goes to another function through Enter button, destroys the previous root and opens a new one. Here I need to enter some amount to withdraw or deposit. I am using Entry
widget here again by doing
inp= StringVar()
Entry (root1, textvarible=inp)
I used withdraw button which sends this (inp
) to withdraw
function. When I print that (inp
), it gives PY_Var16
, PY_Var22
.