Hallo zusammen,
ich baue gerade an einer Touchscreen bedienbaren Application auf dem Pi. Dazu will ich das VKeyboard nutzen.
Jetzt hätte ich gern unterschiedliche Layouts des VKeyboards für die unterschiedlichen Textinputs genutzt. Dafür habe ich mir Layout-json-Files für z.B. HEX-Eingabe oder Nummerische-Tastatur gebaut. Diese funktionieren auch, wenn ich Config.set('kivy', 'keyboard_layout', 'hex') nutze. Aber dann hab ich für alle Textinputs das gleiche Layout.
Ein setzen des Configs je nach Text-Input über bind(focus=on_focus) funktioniert nicht. Da wird immer das erst gesetzte Layout benutzt.
Die Variable input_type läßt nur ['text', 'number', 'url', 'mail', 'datetime', 'tel', 'address'] zu und wirkt scheinbar nur auf Android.
Hat jemand eine Idee?
Kivy VKeyboard Layout dynamisch wählen
- __blackjack__
- User
- Beiträge: 14428
- Registriert: Samstag 2. Juni 2018, 10:21
- Wohnort: 127.0.0.1
- Kontaktdaten:
Das was in der Dokumentation zu `VKeyboard` steht, funktioniert nicht?
“Design patterns are kind of like sarcasm: hard to use well, not always appropriate,
and disgustingly bad when applied to problems they are not meant to solve.” — ajones in c.l.python
and disgustingly bad when applied to problems they are not meant to solve.” — ajones in c.l.python
- __blackjack__
- User
- Beiträge: 14428
- Registriert: Samstag 2. Juni 2018, 10:21
- Wohnort: 127.0.0.1
- Kontaktdaten:
Welche Doku hast Du denn?
“Design patterns are kind of like sarcasm: hard to use well, not always appropriate,
and disgustingly bad when applied to problems they are not meant to solve.” — ajones in c.l.python
and disgustingly bad when applied to problems they are not meant to solve.” — ajones in c.l.python
- __blackjack__
- User
- Beiträge: 14428
- Registriert: Samstag 2. Juni 2018, 10:21
- Wohnort: 127.0.0.1
- Kontaktdaten:
@mothome: Und da steht wie man das `layout` beim anfordern des Keyboards wechseln kann. Der Code ist anscheinend nicht ganz richtig, sollte sich aber durch lesen der Dokumentation und ein bisschen nachdenken korrigieren lassen.
“Design patterns are kind of like sarcasm: hard to use well, not always appropriate,
and disgustingly bad when applied to problems they are not meant to solve.” — ajones in c.l.python
and disgustingly bad when applied to problems they are not meant to solve.” — ajones in c.l.python
