单选题

在tkinter中设置控件widget的背景颜色改为红色的方法是?( )

A

`widget.bg_color = "red"`

B

`widget.background = "red"`

C

`widget.set_bg_color("red")`

D

`widget.config(bg="red")`

赣ICP备20007335号-2