Python Forum
Python tkinter question tablet
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python tkinter question tablet
#1
Hello.I have a question about GUI python tkinter.For example if I have buttons and joystick in my app I control them with my mouse.So,if I have a tablet ,can I control joystick and buttons with my fingers ( for example when I move my finger around I want joystick to move wherever my finger moves) or I have to write other commands to control my app with fingers ?
Maybe this question is a little bit stupid,but I want to know.
Thanks. Smile Big Grin
Reply
#2
you are better off using kivy for this type of application
Reply
#3
Can I do it with tkinter?
Reply
#4
If tkinter is useless for mobile apps, then if I use kivy can I run my app on a tablet(touch screen) with the same way I run it to my laptop(without any changes of code)?
For example I want to use mouse to laptop and my fingers to tablet.The code will be tha same?
Thanks.
Reply
#5
I'm not real familiar with Kivy, used it enough to get a basic feel, But I believe that one of it's main features is portability, and capability to run on phone tablet and/or desktop.

This is their opening statement:

Cross platform

Quote:Kivy runs on Linux, Windows, OS X, Android, iOS, and Raspberry Pi. You can run the same code on all supported platforms.

It can natively use most inputs, protocols and devices including WM_Touch, WM_Pen, Mac OS X Trackpad and Magic Mouse, Mtdev, Linux Kernel HID, TUIO. A multi-touch mouse simulator is included.

more here: https://kivy.org/#home

tkinter is a wrapper around TCL/TK and by it's nature is somewhat outdated. It's still quite valid for simple applications.
Qt5 is chosen by many but has a restriction in taht commercial applications are have a fee based system.

Personally, I prefer wxpython phoenix, but it has a higher learning curve.
Kivy will get you up and running sooner and cover most common platforms from the get go.
Reply
#6
Today I spent a lot of hours to install kivy buildozer cython from a lot of websites in order to run my app to my android phone and I always have a problem with the last command which is this one: buildozer -v android debug

What shoud I do?
Reply
#7
Ask for help on a kivy forum? I don't think kivy is all that popular here, nor portable devices for that matter. You might have better luck getting information elsewhere.
Reply
#8
Ok,I did it. I have one more question.If I use raspberry pi to run my app and connect my tablet to raspberry pi via VNC ,will I be able to use my fingers to touch screen of tablet to push a button (for example) or not?

Thanks again.
Reply
#9
Quote:If I use raspberry pi to run my app and connect my tablet to raspberry pi via VNC ,will I be able to use my fingers to touch screen of tablet to push a button (for example) or not?
This article addresses that question:
http://mattrichardson.com/kivy-gpio-rasp...index.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Beginner question re: Tkinter geometry return2sender 3 905 Jun-19-2023, 06:19 PM
Last Post: deanhystad
  Tkinter GUI question texan1836 3 1,824 Apr-13-2023, 03:12 AM
Last Post: deanhystad
  simple tkinter question function call not opening image gr3yali3n 5 3,305 Aug-02-2022, 09:13 PM
Last Post: woooee
  [Tkinter] question for a tkinter dialog box RobertAlvarez424 2 2,205 Aug-25-2021, 03:08 PM
Last Post: RobertAlvarez424
  tkinter slider question Nick_tkinter 1 2,434 Feb-22-2021, 01:31 PM
Last Post: deanhystad
  [Tkinter] Noob question:Using pyttsx3 with tkinter causes program to stop and close, any ideas? Osman_P 4 5,233 Nov-14-2020, 10:51 AM
Last Post: Osman_P
  question on tkinter canvas PhotoImage gr3yali3n 1 2,105 Sep-05-2020, 12:18 PM
Last Post: Larz60+
  Tkinter parameter question DPaul 2 2,022 Mar-14-2020, 09:35 AM
Last Post: DPaul
  Newbie question with Tkinter Entry mariolopes 2 2,201 Oct-12-2019, 11:02 PM
Last Post: Larz60+
  tkinter filedialog and pickle - custom icon question. kim07133 0 2,727 Jan-08-2018, 12:10 PM
Last Post: kim07133

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020