小编Mar*_*ece的帖子

如何在 ttk.Combobox 的列表视图中更改背景颜色?

如何更改组合框列表视图的样式?

这是到目前为止的部分代码:

style = ttk.Style()
style.configure("BW.TLabel", foreground="black", background="#20252b",
                insertbackground="white", fieldbackground= 'blue')
optmn = ttk.Combobox(self, style="BW.TLabel")
optmn.place(x=140, y=200, width=150, height=25)
Run Code Online (Sandbox Code Playgroud)

如何访问组合框的列表视图的样式?

示例图像:

在此处输入图片说明

python listview combobox tkinter

6
推荐指数
1
解决办法
3086
查看次数

标签 统计

combobox ×1

listview ×1

python ×1

tkinter ×1