+ 6
[SOLVED] See the code. Problem with tkinter GUI
I want to call a function when a button was clicked everything works fine. But I want that as the button clicked the return value of the function should print in gui . Just run this code you will understand it in better way. Code is here. Note : this will not run in sololearn https://code.sololearn.com/c26cYc9dV6h6/?ref=app [ SOLVED ]
6 Réponses
+ 4
https://code.sololearn.com/cU9R4hgRAqZy/?ref=app
Bagon
Abhay
Hay guys see this code . My GUI code is totally based on this. Have a look
+ 3
Yes Abhay I am seeing it bro . But how I was thinking I declared a global variable and use it in my program then how it can say it is not defined
+ 3
Hay Abhay sorry for that. Now i chaneed the function name . Now you can see the original problem
+ 2
Thanks Bagon but you directly imported datetime . I had also done by that . But I was trying to solve my own algorithm. Actually the way you did is simple one . But the above one which I had created was my personal algorithms. So I want to fix that . By the way thanks to you for you help
+ 2
And if you all guys are if thinking that my process is wrong then check this code .
https://code.sololearn.com/cU9R4hgRAqZy/?ref=app
I want to fix my algorithm
+ 1
It says call out not defined at line 104