Foriegn keyboard support for Tkinter snaps

泪湿孤枕 提交于 2019-12-11 14:08:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!