- - Button Clicked?
I have a question:
How can a button's function run only when the button is clicked?
I am using tkinter
All I want is to import(give me) the data from the user and do it with some buttons something like:
Button2==> Give/Ghange Position
Button3==> Find Keys
So, I want when the user click on Button1(Keys)..When choose if he want to give or find the keys (Buttons 2 or 3)..and when if he clicked on Button2...give the keys' position(e.x. click on Button4) or if he clicked on Button3 print the keys position(e.x. Kitchen=Button4)
Is it applicable or I have to import(give me) the data in another way??
My main project is to help people who suffer from alzheimer disease.
My code is below (in my class):
The problem is
a[x]=y # add to dictionary
for i in a:
that python runs the buttons' commands before buttons clicked.So, x,y have already their values and "response" has the value of "Give" because the command is later in the code (I am not sure about this..)
Thanks in advance.
|All times are GMT. The time now is 05:17 AM.
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.