0

Please who knows about python GUI tkinter

The code won't run on sololearn, but the problem is that whenever I click on the exit button , the systemexit error is being raised, what's the problem https://code.sololearn.com/c7PTCInseP8v/?ref=app

6th Jul 2020, 10:23 AM
Adeniyi Olaitan
Adeniyi Olaitan - avatar
5 Respostas
+ 2
it works fine for me, what error are you getting?
6th Jul 2020, 10:31 AM
Slick
Slick - avatar
0
Exception has occurred: SystemExit After trying to click the exit button
6th Jul 2020, 10:34 AM
Adeniyi Olaitan
Adeniyi Olaitan - avatar
6th Jul 2020, 10:36 AM
Adeniyi Olaitan
Adeniyi Olaitan - avatar
0
Isnt that exactly what you wanted? You click the exit button and the app closes right? If root window is created in the class as well you can call self.root.destroy as the exit button command and it'll do the same thing. unless that error code has any other information its doing what it should be
6th Jul 2020, 10:39 AM
Slick
Slick - avatar
0
It does not close, it hangs and tell me it's not responding, then it displays that error
9th Jul 2020, 12:28 AM
Adeniyi Olaitan
Adeniyi Olaitan - avatar