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.


    Keyboard switch.

    Pythonista
    5
    116
    46937
    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.
    • shinya.ta
      shinya.ta @cvp last edited by

      @cvp

      I put the #, but there is no change.

      The window is displayed instead of the keyboard.

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

        @shinya.ta Please, could you post here your 10 last lines, thanks

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

          @cvp

                  if (x+d+dd) > w:
                      x = dd
                      y = y + d + dd
              vv.frame = (0,0,w,h)
              vv_array.append(vv)
          
          i_set = 0
          nextSet(vv_array[n_sets-1]['nextSet'])  # display 1st setet)
          
          v.present('sheet')
          tv.selected_range = (0,0)
          tv.begin_editing()
          
          cvp 1 Reply Last reply Reply Quote 0
          • cvp
            cvp @shinya.ta last edited by

            @shinya.ta put a # before the line nextSet... as here-after

            if (x+d+dd) > w:
                        x = dd
                        y = y + d + dd
                vv.frame = (0,0,w,h)
                vv_array.append(vv)
            
            i_set = 0
            #nextSet(vv_array[n_sets-1]['nextSet'])  # display 1st setet)
            
            v.present('sheet')
            tv.selected_range = (0,0)
            tv.begin_editing()```
            shinya.ta 1 Reply Last reply Reply Quote 0
            • shinya.ta
              shinya.ta @cvp last edited by

              @cvp

              vv.frame = (0,0,w,h)...
              
              

              There is an error here.

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

                @shinya.ta Sorry but without the code, no help possible

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

                  Please post your new 10 last lines

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

                    @cvp

                    if (x+d+dd) > w:
                                x = dd
                                y = y + d + dd
                        vv.frame = (0,0,w,h)
                        vv_array.append(vv)
                    
                    i_set = 0
                    #nextSet(vv_array[n_sets-1]['nextSet'])  # display 1st setet)
                    
                    v.present('sheet')
                    tv.selected_range = (0,0)
                    tv.begin_editing()```
                    
                    
                    
                        if (y+d+dd) > h:
                            h = y + d + dd
                        vv.add_subview(b)
                        x = x + d + dd
                        if (x+d+dd) > w:
                            x = dd
                            y = y + d + dd
                    vv.frame = (0,0,w,h)
                    vv_array.append(vv)
                    

                    i_set = 0
                    nextSet(vv_array[n_sets-1]['nextSet']) # display 1st setet)

                    v.present('sheet')
                    tv.selected_range = (0,0)
                    tv.begin_editing()

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

                      @cvp

                      The "indentation error" will appear.

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

                        The error results from your lines not being well-aligned
                        Unindenting the x=... and y=... lines should fix it

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

                          @cvp

                          I'm sorry. The second code is wrong.

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

                            @Olaf

                            I'm a beginner, so I don't know which line I should go.

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

                              @shinya.ta your modified code is here

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

                                @cvp

                                I can't use the existing keyboard because it is hidden.
                                There is no change between the beginning and the change.

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

                                  @shinya.ta It's sure that there is a modification between beginning and this last script...
                                  The 4th one before end of script is commented to use the standard keyboard

                                  Or I don't understand your request, in this case, sorry

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

                                    @cvp

                                    Can I use this script only in the frame of the keyboard?
                                    Do I need to change my size?

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

                                      @shinya.ta Sorry, I don't understand what you want to do. In your initial post, you asked to use standard keyboard instead of the customized one with emojis. Thus, the solution was to not use setInputAccessoryView, thus to comment the line that does this process...

                                      Or, I really don't understand anything.

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

                                        @cvp

                                        I'd like to try it once.
                                        How can I do so that I don't use setInputAccessoryView?

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

                                          @shinya.ta download the script here and retry

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

                                            @cvp

                                            Is the iPad displayed properly?

                                            On iPhone, the text view is displayed on the keyboard, and you can't use the keyboard.

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