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.
Braille application.
-
@shinya.ta said:
The size was different when I started the program using the Pythonisa application.
Do you want to say that since the beta version, the displayed keyboard size is different?
If yes, I really don't know why.Do you work on the same iPhone?
If no, you could have different size. -
@shinya.ta You can get this operationalerror message if the .db file is not present in the same folder as the program
Do you work on the same iPhone?
If no, did you also install HiraganaToKanji.db file? -
I probably didn't install "HiraganaToKanji. db".
I'm sorry, but I forgot where I was.The change of size is the work on the same iPhone.
-
@shinya.ta Do you have normal and beta version installed on same iPhone?
-
Now, the normal one is overwritten and it is only the beta version.
-
@shinya.ta Then how HiraganaToKanji. db has disappeared?
-
import sqlite3 import ui conn = sqlite3.connect("HiraganaToKanji.db",check_same_thread=False) cursor = conn.cursor() v = ui.View() v.frame = (0,0,400,400) v.name = 'Test Hiragana_to_Kanji.db' class MyTextFieldDelegate (): def textfield_should_return(textfield): cursor.execute( 'select hiragana, kanji from Hiragana_to_Kanji where hiragana = ?', (textfield.text, )) t = '' for row in cursor: t = t + row[1] + '\n' textfield.superview['tv'].text = t textfield.end_editing() return True tf = ui.TextField() tf.frame = (10,10,380,32) tf.delegate = MyTextFieldDelegate v.add_subview(tf) tv =ui.TextView(name='tv') tv.frame = (10,50,380,340) tv.background_color = 'white' tv.editable = False v.add_subview(tv) v.present('sheet') v.wait_modal() conn.close()
I installed this.
-
@shinya.ta said:
I installed this.
Why? I don't understand why you did reinstall this test program
It is sure that Test Hiragana_to_Kanji db and Japanese Braille Input do not have same keyboard, it is normal
-
Where can I download HiraganaToKanji. db?
-
@shinya.ta It is explained above in the topic..file is . here
tapping
Download
options
Run Pythonista3 script
Import file -
I'm back in less than one hour, bye
-
I downloaded the imported file, but the error appears. Why?
-
Is there a way to confirm whether it is downloaded properly?
-
@shinya.ta First, be sure the dB file is in the same folder as the script
And Pythonista shows a size of 6,4 MB -
It was included in the item "FAVORITES".
I don't know the basics.
Please tell me how to solve it. -
@shinya.ta said:
It was included in the item "FAVORITES".
I don't know the basics.
Please tell me how to solve it.You can delete it from favorites, it will not really delete the file
-
@shinya.ta to find where is your file, type HiraganaToKanji.db in search field
-
I searched for it in search field.
After all, it is in my favorite column.
I tried to import it again, but it hasn't changed.It should be done according to the procedure, but why?
-
@shinya.ta what do you call "favorite column"?
-
@shinya.ta could you run this little script and after, paste the clipboard here in the forum
The content of your root folder will so be visible here, to check if the Braille keyboard script and the dB file are presentimport os import clipboard l = os.listdir() t = '' for e in l: t = t+e+'\n' clipboard.set(t)