[Tutor] How to use tkinter with a touch screen device?

boB Stepp robertvstepp at gmail.com
Sat Jul 18 05:49:16 CEST 2015


On Fri, Jul 17, 2015 at 10:13 PM, Laura Creighton <lac at openend.se> wrote:
> The place to ask this question is https://mail.python.org/mailman/listinfo/tkinter-discuss  but I think you are out of luck...

This would explain why I am having trouble finding much information.
I *think* I could get things to work on the tablet if I restrict
myself to coding for short press and long press gestures, and the
virtual keyboard.  But even this might be more involved than I would
like.  I read something a bit ago that one fellow could not get a
short or long press gesture to work unless he coded for BOTH the press
and release the press events.  Not exactly analogous to a mouse-click
event.


> ... On the other hand, kivy
> ought to work for you. http://kivy.org/#home  I've yet to try it on
> a windows tablet, though.

I think it was you who mentioned this GUI framework on the main python
list fairly recently.  In fact, on my phone I have left its web page
up to look at when I get a chance.  Does kivy have all of the
functionality of tkinter in addition to supporting multi-touch
gestures?  Any downsides I should be aware of?  Judging by their
"Hello, world" example, the code looks even simpler than tkinter.
Does everything have to be written as classes?

Thanks, Laura!

-- 
boB


More information about the Tutor mailing list