• shinya.ta

    @cvp

    Dear.cvp
    I'm sorry, I'm late.

    I wrote a very wonderful code.

    I want to try it after I finish work.

    posted in Pythonista read more
  • shinya.ta

    @cvp

    It was successful.

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

    Thank you very much.

    posted in Pythonista read more
  • shinya.ta

    @cvp

    The following codes make a name error.

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

    posted in Pythonista read more
  • shinya.ta

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

    posted in Pythonista read more
  • shinya.ta

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

    posted in Pythonista read more
  • shinya.ta

    @cvp

    I think training is necessary, but I think it's possible.

    posted in Pythonista read more
  • shinya.ta

    @cvp

    This time, I added the following code.

    I selected the emoji I read aloud and put it in the task bar.

    When the Text View is blank, when you press the cursor move button, there is an error.

    What's the cause?

    #絵文字タスクバー

    def typeChar(sender):
    '''finds active textinput, and types the button's title'''
    tf=sender.objc_instance.firstResponder()
    tf.insertText_(sender.title)

    #create normal keys
    buttons=[]
    for button_title in '😊😜😱💦☔️':
    buttons.append(ui.Button(title=button_title,action=typeChar))

    #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))

    '''set up toolbar'''
    keyboardToolbar=ObjCClass('UIToolbar').alloc().init()
    keyboardToolbar.sizeToFit()
    keyboardToolbar.items = [ObjCClass('UIBarButtonItem').alloc().initWithCustomView_(b) for b in buttons]

    #attach our accessory to the textfield, and textview.
    tv.objc_instance.setInputAccessoryView_(keyboardToolbar)

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

    posted in Pythonista read more
  • shinya.ta

    @cvp

    I tested.

    It's a convenient function, so I'll have my wife use it.😊

    posted in Pythonista read more
  • shinya.ta

    @cvp

    I did not know that there is such a wonderful function.

    I am working now, so I will try it when I go home.

    Thank you for your wonderful advice.

    After all, you are God.

    posted in Pythonista read more
  • shinya.ta

    @cvp

    It's done.

    I misunderstood the code I changed.

    Thank you very much.
    Thank you very much.

    I had tears.

    You are really my God.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!