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
-
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)
-
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.
-
@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
-
@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.
-
@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
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)
-
@cvp I changed that line and it gives the same result (i.e., nothing happens). (I wonder why calculate works for you)
-
@ihf did you install the last beta version of Pythonista (340007) Via TestFlight or are you still with first beta 340006?
Calculate
Emoji Search
PlaceHolders
-
@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.
-
@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
-
@cvp can't get it to work for those buttons (a few work).
-
-
@ihf Is it possible that you changed/deleted the sample scripts somehow? Could you try "Restore Examples" (from the settings)?
-
@omz I tried the restore examples and those keyboard buttons that I mentioned above still don’t work
-
@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')
-
@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). -
@omz for me, it seems to work on iPad Air 5, iOS 16.3.1, beta 340008
-
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.
-
@ihf Weird. The only thing I know is that, very often, I also got a direct return and after some retries, it works.
-
@cvp I have yet to get those functions to work.
-