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.
New button addition.
-
You might be able to reduce repetitive code by adding a
self.make_button()
method that takes a few parameters and returns aui.Button
. -
@ccc it's not his fault, this is my code and, at the time, he requested one button at a time ...
-
@shinya.ta said:
I want to add a new button.
All Text Reading Buttons.
Then, from the beginning of the text, it is the button to read the position of the cursor.
Is it possible?I understand you want a new button, but I don't understand its function.
What is "all text reading buttons"?
Do you want that the button action displays the position of the cursor? Like row,column?
And, if yes, where to display it? -
@ccc said:
reduce repetitive code by adding a self.make_button() method
But you're right, I'll do it
-
My sense was that this was cursor up, down, left, right buttons on the top row of the on-screen keyboard to the right of cut, copy, paste.
-
@cvp I gather he wants something to read (text to speech) starting from the cursor...
-
-
I'm sorry, I'm not good at English, so I couldn't write well.
I would like you to read the text at the cursor position.
And I want you to read all the text fields in the text field. -
@shinya.ta I understand your language problem, English is not my mother language and I also have a lot of problems of comprehension 😅
Thus, do you want to have two buttons?
One to read the text at the cursor (only one character? One word? All from the cursor?)
A second button to read the entire text? -
All from the cursor.
And the whole text. -
@shinya.ta ok, last (I hope) questions: where do you want these buttons and which title on them?
-
@shinya.ta first of all, @ccc advice followed here Emojis Keyboard.py
Please try it, thanks -
Yes, it's necessary for me.
-
@shinya.ta said:
Yes, it's necessary for me.
sorry, I don't understand to which questions you answer 🤔
-
@shinya.ta I have still an important question: do you use this keyboard in a text field of more than one line? Because Pythonista keyboard module does not support it easily.
-
I need this reading button for my wife.
-
@shinya.ta i understand why you need it but you don't answer to my questions:
- where do you want these buttons?
- which title?
3 ) do you use it in a text field of multiple lines?
Ex:
-
- I want to have a button here.
- It's okay with the title of the picture.
- I use it in multiple lines.
-
@shinya.ta said:
I want to have a button here.
Sorry, but one more time I don't understand. For the moment, I'll keep "my" positions
-
@shinya.ta said:
I use it in multiple lines.
Let us begin with one line at once because Pythonista's keyboard module does not support multiple lines in keyboard.get_input_context() module