是否可以先运行程序,然后在命令行中等待用户的输入.例如
Run...
Process...
Input from the user(in command line form)...
Process...
Run Code Online (Sandbox Code Playgroud) 有没有办法可以改变 python 中禁用条目小部件的颜色?
x = tk.Entry(parent)
x.configure({"background": "gray24"})
x.configure({"fg": "white"})
x.configure({"state": "disable"})
Run Code Online (Sandbox Code Playgroud)
上面的代码仅在小部件的“状态”为“正常”时才有效。