+ 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 ]

24th Jun 2020, 11:09 AM
Ayush Kumar
Ayush Kumar - avatar
6 Respostas
+ 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
24th Jun 2020, 11:42 AM
Ayush Kumar
Ayush Kumar - avatar
+ 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
24th Jun 2020, 11:19 AM
Ayush Kumar
Ayush Kumar - avatar
+ 3
Hay Abhay sorry for that. Now i chaneed the function name . Now you can see the original problem
24th Jun 2020, 11:21 AM
Ayush Kumar
Ayush Kumar - avatar
+ 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
24th Jun 2020, 1:55 PM
Ayush Kumar
Ayush Kumar - avatar
+ 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
24th Jun 2020, 1:56 PM
Ayush Kumar
Ayush Kumar - avatar
+ 1
It says call out not defined at line 104
24th Jun 2020, 11:15 AM
Abhay
Abhay - avatar