NorwegianClassic
Posts: 17
Joined: Mon Oct 19, 2015 8:33 am
Location: Bergen, Norway

How do I exit KIVY fullscreen?

Mon May 02, 2016 2:28 pm

Yeah, so just as the title says: how do I exit/quit KIVY fullscreen apps?

Tried using CTRL + C from det keyboard, which doesn't work.
I also tried making a button and run sys.exit(), quit() and App.get_running_app().stop(). The screen goes black, but the desktop will not appear. This is the official touchscreen from rpi.

Anyone know how to do this? Any idea is appreciated :)

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How do I exit KIVY fullscreen?

Mon May 02, 2016 2:44 pm

Have you tried running it from the command line (not using the GUI)?

NorwegianClassic
Posts: 17
Joined: Mon Oct 19, 2015 8:33 am
Location: Bergen, Norway

Re: How do I exit KIVY fullscreen?

Mon May 02, 2016 3:00 pm

Oh, I think you are on to something.
I have only tried running my program through "F5 Run" in python 2. I will check when I come home. Thank you ;)

NorwegianClassic
Posts: 17
Joined: Mon Oct 19, 2015 8:33 am
Location: Bergen, Norway

Re: How do I exit KIVY fullscreen?

Mon May 02, 2016 5:18 pm

Yes. That was it. Thank you. Both CTRL + C and in-code exit() works perfectly. :D

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How do I exit KIVY fullscreen?

Mon May 02, 2016 5:31 pm

It could very well be that the program is exited when you use the GUI, but that the framebuffer is messed up.
IIRC something like also could happen with older versions of Kodi.
You could test this by starting the GUI, but starting the program from an SSH session (kivy output will still go to attached screen).
You can then see if it exits cleanly.

NorwegianClassic
Posts: 17
Joined: Mon Oct 19, 2015 8:33 am
Location: Bergen, Norway

Re: How do I exit KIVY fullscreen?

Mon May 02, 2016 6:16 pm

Ran the program using SSH. Both ctrl+c from host and my exit() -button works well :)

Return to “Python”