Custom keyboard made using scene module!
Hey there guys! Here is a small keyboard I made for use with scene.Scene.<br>
It supports different layouts (defined by user), but I have just one for now. I've tested it only on iPad3 in landscape mode, so I am not sure how it will behave on smaller devices, or when rotated.
Hopefully you will like it!<br>
Pull requests are welcome, as I am tired already and the code is a little bit messy :D
Here is a screenshot. Button F is pressed that's why it is gray:
Quite cool, how efficient is it?
@nope, not sure what you mean by how efficient it is. You can already assign actions to buttons :)
Later I am going to add numbers layout and special buttons that require images.
Cool... You might look at another attempt to do this... http://omz-forums.appspot.com/pythonista/post/6407519169675264 There is an undocumented scene.Button that you can use.
@ccc, thanks for the link, but I've already seen it :). Actually, it gave me inspiration to make my own keyboard.
New version available!<br>
Keyboardclass now has two new useful functions:
setupgets called right after
__init__, so you can modify it instead of modifying
initshould be called before keyboard is first drawn. It may contain code for binding keys, etc.
When creating a button using
layout.addSpecialTextButtonyou can specify button ID, which can be later used with
I've split file into several smaller files, so now it is much easier to read and manage the code.
You can now create layouts in different files and then import them and use keyboard.setLayout to use it.
Built-in iPad landscape layout now supports numbers and switching between layouts (letters and numbers).
Hope it will be useful for someone :)