小编Vii*_*iin的帖子

Python中的命令行输入

是否可以先运行程序,然后在命令行中等待用户的输入.例如

Run...

Process...

Input from the user(in command line form)...

Process...
Run Code Online (Sandbox Code Playgroud)

python command-line user-input input python-2.7

31
推荐指数
3
解决办法
16万
查看次数

tkinter - 更改禁用条目小部件的颜色

有没有办法可以改变 python 中禁用条目小部件的颜色?

x = tk.Entry(parent)
x.configure({"background": "gray24"})
x.configure({"fg": "white"})
x.configure({"state": "disable"})
Run Code Online (Sandbox Code Playgroud)

上面的代码仅在小部件的“状态”为“正常”时才有效。

python tkinter widget

2
推荐指数
1
解决办法
2226
查看次数

标签 统计

python ×2

command-line ×1

input ×1

python-2.7 ×1

tkinter ×1

user-input ×1

widget ×1