Welcome to the Pythonista Community Forums!

Pythonista is a Python programming environment for iOS. To learn more, head over to the Pythonista Website.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter
Keyboard and input field
  • Hi guys!

    I really love Pythonista, it lets me do things I would find very hard any other way. And it's really fun to toy with, as well!

    The Filebrowser wrenoud made is a good step forward, but I wanted to see if I could create a keyboard. So I did!

    I've borrowed code from wrenoud for the scrolling layer. And the scrolling is not as nice as I've would've liked since there is no way to "clip" in the layers or just view parts of them (at least not that I could find). I started out with some code I found here (sorry, maybe PHKG?) and built the keyboard.

    Anyway, here is the script for generating the keyboard:

    https://gist.github.com/4121332

    Here is the simple gui, that let's you scroll the input field and type into it. You can also switch between the normal keyboard and the numerial one:

    https://gist.github.com/4121343

    Feel free to continue, extend or redo what you want! :)

    Screenshot:

    Share photos on twitter with Twitpic
  • You beat me to it :) I was working on this as well, looks wonderful.
  • @silverkors
    In 'my' scientific calculater, I had built keboard input too, if Scenes can change on demand, it could eventually give ideas, to change it ...
    Your pictures are (for me a bit) small, have to look at it more closely.
    One has to interprete touch- coordinates to find out which key (picture) is tapped?
    I use .. in ...frame ;-)