问题
I am currently developing a snap for learning foreign languages with Tkinter. However, it seems that typing in a different script doesn’t work in the snap, though it does when run normally. Is there a special interface I need? By the way, I think it's running TCL 8.6.
My snapcraft.yaml
is as follows:
name: prosakart
base: core18
version: '0.1.0'
icon: icon.png
summary: Application for language memorization.
description: |
ProSakart is a language-learning application, specifically for vocabulary
memorization. It is a portmanteau of Professional and Sakartvelo. Its source
code is written in Python.
grade: devel
confinement: strict
apps:
prosakart:
adapter: full
command: bin/prosakart
command-chain:
- bin/debian-multiarch-triplet-provider-launch
- bin/tcltk-launch
plugs:
- desktop
- home
- x11
- unity7
parts:
debian-multiarch-triplet-provider-launch:
plugin: nil
stage-snaps:
- debian-multiarch-triplet-provider-launch
tcltk-launch:
plugin: nil
stage-snaps:
- tcltk-launch
prosakart:
plugin: python
python-version: python3
source: https://github.com/clockback/prosakart.git
build-packages: []
stage-packages:
- python3-tk
- python3-pil.imagetk
- fontconfig-config
- fonts-dejavu-core
- fonts-dejavu-extra
python-packages: []
after:
- desktop-glib-only
desktop-glib-only:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: glib-only
plugin: make
build-packages:
- libglib2.0-dev
stage-packages:
- libglib2.0-bin
I've also posted this question on forums.snapcraft.io. The source code can be found here.
来源:https://stackoverflow.com/questions/58813057/foriegn-keyboard-support-for-tkinter-snaps