TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED 抑制
TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit
Python:3.9.5
Os: macOS 11.4
from tkinter import *
window = Tk()
e1_value = StringVar()
def printText():
print(e1_value.get())
# def printText():
# print('HelloWorld!')
b1 = Button(window, text = "Excute", command = printText())
b1.grid(row = 0, column = 0)
e1 = Entry(window, textvariable = e1_value)
e1.grid(row = 0, column = 1)
t1 = Text(window, height = 1, width = 20)
t1.grid(row = 0, column = 2)
window.mainloop()
我遇到了在终端中打印出的错误,因此我无法将值打印到终端中。错误说,
"TSM AdjustCapsLockLEDForKeyTransitionHandling -
_ISSetPhysicalKeyboardCapsLockLED Inhib"
,当我在条目 window 中输入内容时。我一直在 Google 上寻找答案,但我仍然找不到。你碰巧知道如何解决这个问题吗?
此外,即使我按了几次按钮,我也只能看到 'Hellow world!' 一次。
我不熟悉 tkinter,所以我不知道该怎么做。
我把printText后面的括号删掉了。
b1 = Button(window, text = "Excute", command = printText)
我可以打印出我在输入框中输入的内容。不过,我仍然看到“TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhib”。
from tkinter import *
window = Tk()
e1_value = StringVar()
def printText():
print(e1_value.get())
# def printText():
# print('HelloWorld!')
b1 = Button(window, text = "Excute", command = printText)
b1.grid(row = 0, column = 0)
e1 = Entry(window, textvariable = e1_value)
e1.grid(row = 0, column = 1)
t1 = Text(window, height = 1, width = 20)
t1.grid(row = 0, column = 2)
window.mainloop()
这是因为您的键盘首选项中有其他语言。
删除键盘首选项中非英语的语言
Python:3.9.5 Os: macOS 11.4
from tkinter import *
window = Tk()
e1_value = StringVar()
def printText():
print(e1_value.get())
# def printText():
# print('HelloWorld!')
b1 = Button(window, text = "Excute", command = printText())
b1.grid(row = 0, column = 0)
e1 = Entry(window, textvariable = e1_value)
e1.grid(row = 0, column = 1)
t1 = Text(window, height = 1, width = 20)
t1.grid(row = 0, column = 2)
window.mainloop()
我遇到了在终端中打印出的错误,因此我无法将值打印到终端中。错误说,
"TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhib"
,当我在条目 window 中输入内容时。我一直在 Google 上寻找答案,但我仍然找不到。你碰巧知道如何解决这个问题吗?
此外,即使我按了几次按钮,我也只能看到 'Hellow world!' 一次。
我不熟悉 tkinter,所以我不知道该怎么做。
我把printText后面的括号删掉了。
b1 = Button(window, text = "Excute", command = printText)
我可以打印出我在输入框中输入的内容。不过,我仍然看到“TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhib”。
from tkinter import *
window = Tk()
e1_value = StringVar()
def printText():
print(e1_value.get())
# def printText():
# print('HelloWorld!')
b1 = Button(window, text = "Excute", command = printText)
b1.grid(row = 0, column = 0)
e1 = Entry(window, textvariable = e1_value)
e1.grid(row = 0, column = 1)
t1 = Text(window, height = 1, width = 20)
t1.grid(row = 0, column = 2)
window.mainloop()
这是因为您的键盘首选项中有其他语言。
删除键盘首选项中非英语的语言