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.


    pythonista UI

    Pythonista
    4
    256
    161207
    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 think training is necessary, but I think it's possible.

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

        @shinya.ta add "i = 0" before "for c..." in "def IndexToPos..." as here-under

        def IndexToPos(type):
            tvo = ObjCInstance(tv)
            # build array index -> position in range
            idxtopos = []
            pre_x = -1
            #print(tv.text)
            i = 0
            for c in tv.text:```
        shinya.ta 2 Replies Last reply Reply Quote 0
        • shinya.ta
          shinya.ta @cvp last edited by

          @cvp

          Thank you very much.

          We were able to solve it immediately.

          There is a "◀︎▶︎" in the task bar, so I don't think that's necessary.
          I'm trying to remove it, but I'm not sure which one I should turn off.

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

            @cvp

            I want to increase the type of emoji in the task bar, but when I try to increase the number of emoji, the original emoji will hide and I can't display them.

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

              @shinya.ta Try this

              #create special keys
              def prev(sender):
              	'''simulates 'tab' key, go to next field '''
              	s=sender.objc_instance.firstResponder()._previousKeyResponder().becomeFirstResponder()
              	buttons.append(ui.Button(image=ui.Image.named('iob:ios7_arrow_back_32'),action=prev))
              
              def next(sender):
              	'''simulates 'tab' key, go to next field '''
              	s=sender.objc_instance.firstResponder()._nextKeyResponder().becomeFirstResponder()
              	buttons.append(ui.Button(image=ui.Image.named('iob:ios7_arrow_forward_32'),action=next))
              
              #create normal keys
              d = 32
              dd = 4
              w, h = ui.get_screen_size()	
              vv = ui.View()
              vv.background_color = 'lightgray'
              h = 0
              x = dd
              y = dd
              for button_title in '😊😜😱💦☔️😀😃😄😁😆😅😂🤣☺️😊😇🙂🙃😉😌😍🥰😘😗😙😚😋😛😝😜🤪🤨🧐🤓😎🤩🥳😏😒😞😔😟😕🙁☹️😣😖😫😩🥺😢😭😤😠😡🤬🤯😳🥵🥶😱😨😰😥😓🤗🤔🤭🤫🤥😶😐😑😬😦😧😮😲😴🤤😪😵🤐🥴🤢🤮🤧😷🤒🤕🤑🤠😈':
              	b = ui.Button(title=button_title,action=typeChar)
              	b.frame = (x,y,d,d)
              	b.font = ('.SFUIText', d)
              	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)
              #attach our accessory to the textfield, and textview.
              tvo = tv.objc_instance
              tvo.setInputAccessoryView_(ObjCInstance(vv))
              
              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

                The following codes make a name error.

                b = ui.Button(title=button_title,action=typeChar)…

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

                  @shinya.ta you are sure you have not removed your

                  def typeChar(sender):
                  	'''finds active textinput, and types the button's title'''
                  	tf=sender.objc_instance.firstResponder()
                  	tf.insertText_(sender.title)
                  
                  shinya.ta 1 Reply Last reply Reply Quote 0
                  • shinya.ta
                    shinya.ta @cvp last edited by

                    @cvp

                    It was successful.

                    By using this task bar, I think my wife can write a message happily.

                    Thank you very much.

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

                      @shinya.ta You could even add your "own" buttons in this taskbar...

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

                        @shinya.ta Thé script here-under will allow you to test the Apple standard speech module, and this code supports, I hope, all emojis. Thus, I suppose that my other scripts has a bug for combined emojis. I'll try to correct it in a close future.

                        see here

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