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
-
@shinya.ta 😢I had just found how to change VoiceOver language in Pythonista...
Not sure I could change the keyboard language by program -
I think it is OK with the switch button like the Emoji list, but is it still difficult?
-
@shinya.ta I Really don't know if it is possible, perhaps other ones on the forum...
-
-
@shinya.ta Try this, it switches between English and French
b_lang = ui.Button() b_lang.frame = (10,290,100,32) b_lang.title = 'english' b_lang.background_color = 'white' b_lang.border_width = 1 def b_lang_action(sender): app = ObjCClass('UIApplication').sharedApplication() if sender.title == 'english': sender.title = 'french' app.setAccessibilityLanguage('en') else: sender.title = 'english' app.setAccessibilityLanguage('fr') b_lang.action = b_lang_action v.add_subview(b_lang)```
-
It was a little different from what I wanted.
But I think there is a hint to switch the keyboard.
I'll try some more.
-
@cvp
https://stackoverflow.com/questions/12595970/iphone-change-keyboard-language-programmatically
might be of help.
looks like you need to swizzle textInputMode, or at least a custom uiresponder class descended from the pythonista one, with a textInputMode. looks hard -
@shinya-ta I'm sorry but that seems to complex for me, hoping somebody could add this last part. Good luck
-
-
I heard that the following are the settings of the glove key in Swift, but can't I change it with pythonisa?
var needsInputModeSwitchKey: Bool { get }
var hasFullAccess: Bool
-
-
@shinya.ta (get) means that you only can get the value and to set.
-
Is this content okay?
I want to do this with pythonisa.
https://developer.apple.com/documentation/uikit/uiinputviewcontroller
-
@shinya.ta That's for custom keyboard apps, I don't think Pythonista is able to do that, if it is too complex for me and I'll let other people answer, sorry
-
-
@shinya.ta search "custom keyboard" in App Store and you will see a lot of keyboard applications, that's an entire application, not a part of Pythonista
-
Do I need to make it from the library?
-
Well, it is possible to create your own completely custom keyboard
https://forum.omz-software.com/topic/4951/real-numeric-pad-on-ipad/11Or, you can add a custom keyboard row, specific to each textfield:
https://gist.github.com/2ad26773f2ceaf3b1c3350fde62fe505
In this example, I show how you can create a row of emoji's above the normal keyboard, or also could create custom action buttons.
-
@JonB Not completely custom keyboard. Keys like uppercase, 123 and Globe are not real keys
-
In the tool bar, it is too small to use VoiceOver, so it is difficult to operate it.