CRYPTOCOM
Posts: 10
Joined: Wed Dec 26, 2018 6:05 pm

Touchscreen Interface Programming....??

Thu Dec 27, 2018 8:52 pm

Is KIVY still the best choice to create a custom GUI for my program?

https://kivy.org/#home

User avatar
topguy
Posts: 5569
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Touchscreen Interface Programming....??

Thu Dec 27, 2018 9:12 pm

Is KIVY still the best choice to create a custom GUI for my program?
Since we know exactly zero about "your program" and your requirements I will claim that is impossible to answer.

But I havent seen any good alternatives for Python mentioned recently so It might still be the "best".

CRYPTOCOM
Posts: 10
Joined: Wed Dec 26, 2018 6:05 pm

Re: Touchscreen Interface Programming....??

Thu Dec 27, 2018 9:25 pm

The requirement's basic: Use touchscreen area as way to initiate program execution - perhaps six programs made available for execution, so six rectangular "buttons" available on screen.

On contact w/screen area "button" a program executes....touch deactivated....on program termination becomes active again. What happens during program execution doesn't involve touchscreen input.

Maybe expand on that later....is there a competitor to KIVY, RPi?

User avatar
topguy
Posts: 5569
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Touchscreen Interface Programming....??

Wed Jan 02, 2019 1:49 pm

You can do those things with pygame or tkInter also I would guess.

The touch is just another HID device and should trigger buttons just like a mouse.
- tkInter - need X-Windows running.
- pygame - uses SDL so dont need X-Windows, no GPU accelleration.
- Kivy - has OpenGLES GPU accelleration.

Your usecases doesnt really need GPU accellerated graphics so I would say you are free to use what you want.
Last edited by topguy on Thu Jan 03, 2019 11:04 am, edited 1 time in total.

User avatar
penguintutor
Posts: 376
Joined: Tue May 08, 2012 9:11 am
Location: UK
Contact: Website

Re: Touchscreen Interface Programming....??

Thu Jan 03, 2019 10:36 am

For a simple interface then big buttons that need to be clicked with a mouse work well.

I've created touchscreen apps using Pygame, Pygame Zero and through a webbrowser interface driven using a Python Bottle webserver.

You just need to consider the size of the screen you are targetting and making sure the buttons are big enough to press without accidentally pressing other buttons.

CRYPTOCOM
Posts: 10
Joined: Wed Dec 26, 2018 6:05 pm

Re: Touchscreen Interface Programming....??

Thu Jan 03, 2019 3:05 pm

I'm working on a Raspberry Pi 3.

Downloaded Kivy - impressively nested and nuanced; learning curve to match.

Then noted tKinter pre-installed on RPi's - easily created the function if not the appearance I wanted - shallow learning curve.

tKinter it is for now....

Return to “Python”