• cvp

    @djorge You're right, unfortunately, see here

    Already entered in Pythonista issues

    you could reinstall previous version:

    TestFlight
    Previous builds
    Display builds
    330014 Install

    posted in Pythonista read more
  • cvp

    @shinya.ta for info, Apple doc of customized keyboards says
    Because a custom keyboard can draw only within the primary view of its UIInputViewController object, it cannot select text. Text selection is under the control of the app that is using the keyboard. If that app provides an editing menu interface (such as for Cut, Copy, and Paste), the keyboard has no access to it

    The standard keyboard of Mail offers a copy button

    posted in Pythonista read more
  • cvp

    @shinya.ta After some tests, it seems that in my little script and the big script, the "copy" button work in Safari, in Notes, in Pythonista, in Numbers but not in Mail....
    This is perhaps an Apple limitation.

    posted in Pythonista read more
  • cvp

    @shinya.ta I'm sorry for you but I don't know if it is a problem of Pythonista or of iOS...
    But sure, it is not your iDevice 😀

    I hope that you could, despite that, use this script for other tasks than copy...
    If you need more keys, don't hesitate to ask

    posted in Pythonista read more
  • cvp

    @mikael said:

    color me impressed, once again

    I agree 😀

    posted in Pythonista read more
  • cvp

    @mikael Did you read this?

    posted in Pythonista read more
  • cvp

    @shinya.ta I have exactly the same problem.
    If I use my little keyboard script in Mail, it is not ok, it if I use it in Pythonista editor, it works.

    It is like if Clipboard of Pythonista keyboard is not the same as another app's keyboard.
    I don't know

    I've created an issue in the bugs list of a Pythonista, hoping @omz would process it.

    posted in Pythonista read more
  • cvp

    @shinya.ta

    Could you install this little script as keyboard.
    Then , you select a text where you want, tap the "copy" button and paste the clipboard to check if the action does work.

    When you have tested the little script two days ago, it worked with "qwerty", now we check if it works with selected text, just to be sure that the get_selected_text works.

    import keyboard
    import clipboard
    import ui
    v = ui.View()
    b = ui.Button()
    b.frame = (2,2,60,32)
    b.title = 'copy'
    def b_action(sender):
        t = keyboard.get_selected_text()
        clipboard.set(t)
    b.action = b_action
    v.add_subview(b)
    keyboard.set_view(v, 'expanded')
    

    posted in Pythonista read more
  • cvp

    @GSpaceC quick and dirty

    import ui
    
    v = ui.View()
    v.frame = (0,0,200,200)
    v.background_color = 'white'
    
    b = ui.Button()
    b.image = ui.Image.named('test:Peppers').with_rendering_mode(ui.RENDERING_MODE_ORIGINAL)
    b.frame = (10,10,100,100)
    v.add_subview(b)
    
    im = ui.ImageView()
    im.frame = (120,120,70,70)
    im.image = ui.Image.named('test:Peppers')
    v.add_subview(im)
    
    v.present('sheet')
    

    posted in Pythonista read more
  • cvp

    @shinya.ta Forget the last check that I have asked. If the little script for copy "QWERTY" works fine, that will say that the setting "full access" is ON thus my last request is useless.
    Sorry.

    Thus, the only reason I still see for the problem of copy is that you could have not installed the last version of my script. here

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!