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.


    PyKeys

    Pythonista
    3
    20
    231
    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.
    • ihf
      ihf last edited by

      I haven’t used the PyKeys keyboard in a long time but I decided that I may have some use cases for it. I think some of the buttons are working and some are not (or I'm not using it correctly) . I wanted to see if I could figure out how to get them working, and perhaps to modify them. Can someone point me to the documentation on this or tell me how it can be done? (e.g., Text effects, emoji search , calculate, and placeholders don’t seem to work but REPL, Special Characters, QR code do work)

      ihf 1 Reply Last reply Reply Quote 0
      • ihf
        ihf @ihf last edited by ihf

        Sometimes it helps to RTFM. Tap and hold a button brings up the script. Now I have to see if I can actually fix what doesn't seem to work :-) if anyone wants to give it a try that would be much appreciated. It may be that the keyboard module needs to be updated for the current iOS.

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

          @ihf I guess that the script meets an error but you don't see why.
          For instance, try to run the Emoji search script in normal mode and you get and see this error:

          Traceback (most recent call last):
            File "/private/var/mobile/Containers/Shared/AppGroup/94C45A26-1F47-4486-9539-896F8F44AA91/Pythonista3/Documents/Examples/Keyboard/Emoji Search.py", line 13, in <module>
              all_emoji = emoji.core.unicode_codes.EMOJI_UNICODE
          AttributeError: module 'emoji.unicode_codes' has no attribute 'EMOJI_UNICODE'
          

          The same error will occur if script runs as a keyboard and thus it does not work

          it seems that in beta version, you have to use _EMOJI_UNICODE

          all_emoji = emoji.core.unicode_codes._EMOJI_UNICODE
          

          try to change the line in the example folder and it will work.

          Thus, @omz you would have to check the examples and modify the erroneous ones

          for me, calculate works

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

            @cvp I must be doing something else wrong, because calculate, just dims all of the buttons and then goes back to normal without doing anything. Likewise, when I fix the emojis search script as you show it dims the buttons and returns. Insert date, emoji paint, Repl., QR code, special characters snippets, colors all work. The others fail.

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

              @ihf It is weird, some hours ago, using Emoji Search showed a textfield where to type the searched emoji name and now, it also directly returns...

              Edit: just back alt text

              But all_emoji contains

              {'en': None, 'es': None, 'pt': None, 'it': None, 'fr': None, 'de': None}
              

              In place of emojis names....

              please try

              #all_emoji = emoji.core.unicode_codes._EMOJI_UNICODE
              all_emoji = emoji.core.unicode_codes.get_emoji_unicode_dict('en')
              #print(all_emoji)
              
              ihf 1 Reply Last reply Reply Quote 0
              • ihf
                ihf @cvp last edited by

                @cvp I changed that line and it gives the same result (i.e., nothing happens). (I wonder why calculate works for you)

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

                  @ihf did you install the last beta version of Pythonista (340007) Via TestFlight or are you still with first beta 340006?

                  Calculate

                  alt text

                  Emoji Search

                  alt text

                  PlaceHolders

                  alt text

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

                    @cvp Yes, I am on the latest beta. I don't get that green field with the calculation. If I hit the calculate button the uttons dim and then go back to normal.

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

                      @ihf I got sometimes the same problem and I have had to restart Pythonista, pass via a normal keyboard, pass via another Pythonista keyboard, then use the tested keyboard. As you can see, not obvious

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

                        @cvp can't get it to work for those buttons (a few work).

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

                          @ihf Weird! Hoping that @omz follows this forum. Anyway, if you have the beta, you can log an issue in TestFlight

                          1 Reply Last reply Reply Quote 0
                          • omz
                            omz @ihf last edited by

                            @ihf Is it possible that you changed/deleted the sample scripts somehow? Could you try "Restore Examples" (from the settings)?

                            ihf 1 Reply Last reply Reply Quote 0
                            • ihf
                              ihf @omz last edited by

                              @omz I tried the restore examples and those keyboard buttons that I mentioned above still don’t work

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

                                @ihf I have installed the 340008, restored the examples, modified the Emoji Search with "my" line and it works. On iPad Air 5 IOS 16.3.1.

                                @omz don't forget to change this example with

                                #all_emoji = emoji.core.unicode_codes.EMOJI_UNICODE
                                all_emoji = emoji.core.unicode_codes.get_emoji_unicode_dict('en')
                                
                                1 Reply Last reply Reply Quote 1
                                • omz
                                  omz @ihf last edited by

                                  @ihf Okay, it looks like some of the keyboard examples are broken… In the "Text Effects" script, the faker import seems to be the problem (I'm guessing it's consuming too much memory).

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

                                    @omz for me, it seems to work on iPad Air 5, iOS 16.3.1, beta 340008

                                    alt text

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

                                      Perhaps there is one underlying cause, but other than insert date, and QR code most of the buttons don’t work. Certainly, Repl has a eval grayed out and text effects and several others just return.

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

                                        @ihf Weird. The only thing I know is that, very often, I also got a direct return and after some retries, it works.

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

                                          @cvp I have yet to get those functions to work.

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

                                            @ihf If, as @omz said, it is a problem of sufficient memory, it's possible that my iPad Air 5 contains more than your device.

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