ヘブライ語キーボードのフォーマットを設定しましたが、入力した内容が上部のテキスト フィールドに表示されるようにキーを機能させる方法がわかりません。「キーボード」には、各キーの機能が含まれています。理論的には、各キーを出力するために呼び出されるはずでした。おそらくもっと効率的な方法があると思いますが、これは私の最初の gui であるため、何をすればよいかわかりません。また、このケースに特に適した解決策をオンラインで見つけることができませんでした。
import wx
calc=wx.App()
win=wx.Frame(None, title='gematria calculator', size=(1400,700), pos=(0,0))
import keyboard #contains functions for each key (eg- keyboard.aleph() should print letter aleph to the text field)
textfield=wx.TextCtrl(win, pos=(50,25), size=(1100,150)) #where everything should print to
enter=wx.Button(win, label='enter', pos=(1175,25), size=(200,150))
'''keys'''
space=wx.Button(win, label='space', pos=(400,500), size=(600,100))
aleph=wx.Button(win, label=u'\u05d0', pos=(500,200), size=(100,100))
bet=wx.Button(win, label=u'\u05d1', pos=(450,400), size=(100,100))
gimel=wx.Button(win, label=u'\u05d2', pos=(400,300), size=(100,100))
dallet=wx.Button(win, label=u'\u05d3', pos=(300,300), size=(100,100))
hey=wx.Button(win, label=u'\u05d4', pos=(550,400), size=(100,100))
vav=wx.Button(win, label=u'\u05d5', pos=(700,200), size=(100,100))
zayen=wx.Button(win, label=u'\u05d6', pos=(250,400), size=(100,100))
chet=wx.Button(win, label=u'\u05d7', pos=(800,300), size=(100,100))
tet=wx.Button(win, label=u'\u05d8', pos=(600,200), size=(100,100))
yud=wx.Button(win, label=u'\u05d9', pos=(700,300), size=(100,100))
kaf_s=wx.Button(win, label=u'\u05da', pos=(1000,300), size=(100,100))
kaf=wx.Button(win, label=u'\u05db', pos=(500,300), size=(100,100))
lammed=wx.Button(win, label=u'\u05dc', pos=(900,300), size=(100,100))
mem_s=wx.Button(win, label=u'\u05dd', pos=(900,200), size=(100,100))
mem=wx.Button(win, label=u'\u05de', pos=(750,400), size=(100,100))
nun_s=wx.Button(win, label=u'\u05df', pos=(800,200), size=(100,100))
nun=wx.Button(win, label=u'\u05e0', pos=(650,400), size=(100,100))
samech=wx.Button(win, label=u'\u05e1', pos=(350,400), size=(100,100))
ayin=wx.Button(win, label=u'\u05e2', pos=(600,300), size=(100,100))
pey_s=wx.Button(win, label=u'\u05e3', pos=(1100,300), size=(100,100))
pey=wx.Button(win, label=u'\u05e4', pos=(1000,200), size=(100,100))
tsadi_s=wx.Button(win, label=u'\u05e5', pos=(1050,400), size=(100,100))
tsadi=wx.Button(win, label=u'\u05e6', pos=(850,400), size=(100,100))
kuf=wx.Button(win, label=u'\u05e7', pos=(300,200), size=(100,100))
resh=wx.Button(win, label=u'\u05e8', pos=(400,200), size=(100,100))
shin=wx.Button(win, label=u'\u05e9', pos=(200,300), size=(100,100))
tuf=wx.Button(win, label=u'\u05ea', pos=(950,400), size=(100,100))
win.Show()
calc.MainLoop()