Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Flick button keyboard.
-
@shinya.ta Sorry, I think that I become too old for this kind of stuff, I don't understand anything.
Believe me, you aren't responsible, I am. -
@cvp
I want to combine the previous keyboard and the new flick button keyboard.Flick input button is essential.
-
-
@cvp
It is the cursor movement keyboard that you made before. -
@cvp
If there is a flick input button, it will be easier for my wife to use. -
@shinya.ta said
It is the cursor movement keyboard that you made before.
If I remember, it is not a keyboard that I wrote but a particular script to use buttons for cursor movements in a TextView, but it uses a standard keyboard and you want a special keyboard with flick button keys?
Please, confirm both:
- what you call "cursor movement keyboard" is the "Move cursor in TextView.py" script where you have to tap buttons to move the cursor. And thus is not a keyboard.
- you want, in this script, to use a particular Japanese keyboard where keys can be used as flick buttons to generate vowels
-
I want a special keyboard.
The Japanese input button is a flick input button, and I want to equip other blank buttons, a new line button, and a cursor movement button.
- I don't quite understand what this
means.
- I don't quite understand what this
-
@shinya.ta Could you test this version of Emojis Keyboard.py, and tell me if the A button works as a flick button when you tap it with a long press.
Important: the modified script imports a gestures module that you have to download from https://github.com/mikaelho/pythonista-gestures/blob/master/gestures.py and to save in your site-packages folder.
Of course, this is only a test to check if I have correctly understood what you ask, thus don't hope to find here the solution.
If it is ok, you would have to give me a full description of wanted keys and their content when flicked.Only tested on iPad
Long press on A key gives
Moving finger on E key gives
-
@cvp
I'm sorry. I don't know how to download it. -
@shinya.ta said
I don't know how to download it.
My script, Mikael's script, both? Never downloaded something from GitHub ? ðŸ˜
Some years ago, I wrote some scripts for you or your wife. Did I always post them in the forum, never in GitHub ?
Anyway, to download gestures.py into your site-packages folder, create and run, once, this little script
import os import requests url = 'https://raw.githubusercontent.com/mikaelho/pythonista-gestures/master/gestures.py' data = requests.get(url).content dir = os.path.expanduser('~/Documents/site-packages') file_name = url.split('/')[-1] path = dir + '/' + file_name with open(path,mode='wb') as out_file: out_file.write(data)
To download my little "Emojis keyboard .py" in your Pythonista's root, create and run once this little script
import os import requests #url = 'https://raw.githubusercontent.com/mikaelho/pythonista-gestures/master/gestures.py' url = 'https://raw.githubusercontent.com/cvpe/Pythonista-scripts/master/Emojis%20Keyboard.py' data = requests.get(url).content dir = os.path.expanduser('~/Documents/') file_name = url.split('/')[-1].replace('%20', ' ') path = dir + '/' + file_name with open(path,mode='wb') as out_file: out_file.write(data)
Then you have to replace the old keyboard script by this modified one... Please give me some feedback. Thanks
-
-
@shinya.ta Where? In one my both little scripts to download or in gestures.py or in Emojis Keyboard.py?
-
@cvp
Can't I paste "gestures. py" into "Emoji Keyboard. py"? -
@cvp
When I pasted "gestures. py" into "Emoji Keyboard. py" and started it, I got the previous error. -
@cvp said:
import os import requests #url = 'https://raw.githubusercontent.com/mikaelho/pythonista-gestures/master/gestures.py' url = 'https://raw.githubusercontent.com/cvpe/Pythonista-scripts/master/Emojis%20Keyboard.py' data = requests.get(url).content dir = os.path.expanduser('~/Documents/') file_name = url.split('/')[-1].replace('%20', ' ') path = dir + '/' + file_name with open(path,mode='wb') as out_file: out_file.write(data)
This doesn't respond to anything.
-
@shinya.ta said
When I pasted "gestures. py" into "Emoji Keyboard. py" and started it, I got the previous error.
As Emojis Keyboard.py imports gestures.py, you don't have to paste it, thus don't do that.
This doesn't respond to anything.
The little script does not respond something, it copies/replaces the modified Emojis Keyboard.py in your root folder.
Thus, please run my both little scripts and you will find anew Emojis Keyboard.py in your root folder
-
@cvp said:
@shinya.ta Could you test this version of Emojis Keyboard.py, and tell me if the A button works as a flick button when you tap it with a long press.
Important: the modified script imports a gestures module that you have to download from https://github.com/mikaelho/pythonista-gestures/blob/master/gestures.py and to save in your site-packages folder.
Of course, this is only a test to check if I have correctly understood what you ask, thus don't hope to find here the solution.
If it is ok, you would have to give me a full description of wanted keys and their content when flicked.Only tested on iPad
Long press on A key gives
Moving finger on E key gives
Where is the package folder?
-
@cvp
It's too difficult for me to understand. -
@shinya.ta said
Where is the package folder?
you don't need to know it,
My script gets the gestures.py file from the Internet and copies it in your site-packages folder.
And the import gestures reads it there, all is automaticTap on Python Modules and you will see site-packages folder
-
@shinya.ta said
It's too difficult for me to understand.
The only thing to understand is that one of the two little scripts copy the Emojis Keyboard.py script in your root folder. The needed gestures.py is copied by the other little script in the folder where the import gets it.