omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.

    Pythonista
    5
    50
    14244
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ccc
      ccc last edited by

      You might be able to reduce repetitive code by adding a self.make_button() method that takes a few parameters and returns a ui.Button.

      cvp 2 Replies Last reply Reply Quote 0
      • cvp
        cvp @ccc last edited by

        @ccc it's not his fault, this is my code and, at the time, he requested one button at a time ...

        1 Reply Last reply Reply Quote 1
        • cvp
          cvp @shinya.ta last edited by

          @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?

          JonB 1 Reply Last reply Reply Quote 0
          • cvp
            cvp @ccc last edited by

            @ccc said:

            reduce repetitive code by adding a self.make_button() method

            But you're right, I'll do it

            1 Reply Last reply Reply Quote 0
            • ccc
              ccc last edited by ccc

              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 1 Reply Last reply Reply Quote 0
              • JonB
                JonB @cvp last edited by

                @cvp I gather he wants something to read (text to speech) starting from the cursor...

                1 Reply Last reply Reply Quote 0
                • cvp
                  cvp @ccc last edited by

                  @ccc @JonB you could be right, but, please, I want to be sure...

                  1 Reply Last reply Reply Quote 0
                  • shinya.ta
                    shinya.ta last edited by

                    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.

                    cvp 1 Reply Last reply Reply Quote 0
                    • cvp
                      cvp @shinya.ta last edited by

                      @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?

                      1 Reply Last reply Reply Quote 0
                      • shinya.ta
                        shinya.ta last edited by

                        All from the cursor.
                        And the whole text.

                        cvp 2 Replies Last reply Reply Quote 0
                        • cvp
                          cvp @shinya.ta last edited by

                          @shinya.ta ok, last (I hope) questions: where do you want these buttons and which title on them?

                          1 Reply Last reply Reply Quote 0
                          • cvp
                            cvp @shinya.ta last edited by cvp

                            @shinya.ta first of all, @ccc advice followed here Emojis Keyboard.py
                            Please try it, thanks

                            1 Reply Last reply Reply Quote 0
                            • shinya.ta
                              shinya.ta last edited by

                              Yes, it's necessary for me.

                              cvp 2 Replies Last reply Reply Quote 0
                              • cvp
                                cvp @shinya.ta last edited by

                                @shinya.ta said:

                                Yes, it's necessary for me.

                                sorry, I don't understand to which questions you answer 🤔

                                1 Reply Last reply Reply Quote 0
                                • cvp
                                  cvp @shinya.ta last edited by

                                  @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.

                                  1 Reply Last reply Reply Quote 0
                                  • shinya.ta
                                    shinya.ta last edited by

                                    I need this reading button for my wife.

                                    cvp 1 Reply Last reply Reply Quote 0
                                    • cvp
                                      cvp @shinya.ta last edited by

                                      @shinya.ta i understand why you need it but you don't answer to my questions:

                                      1. where do you want these buttons?
                                      2. which title?
                                        3 ) do you use it in a text field of multiple lines?

                                      Ex:

                                      1 Reply Last reply Reply Quote 0
                                      • shinya.ta
                                        shinya.ta last edited by

                                        1. I want to have a button here.
                                        2. It's okay with the title of the picture.
                                        3. I use it in multiple lines.
                                        cvp 3 Replies Last reply Reply Quote 0
                                        • cvp
                                          cvp @shinya.ta last edited by

                                          @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

                                          1 Reply Last reply Reply Quote 0
                                          • cvp
                                            cvp @shinya.ta last edited by

                                            @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

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums | Contributors