2024-05-14 08:18:16 发布
网友
嘿,我正在尝试使用tkinter更改python应用程序的背景色。 我试过了,但没用。在
app.configure(background='#FBC311')
我明白了:
我想把整个背景都填满。我的代码是:
在帧的for循环中,为背景添加一行:
for F in (StartPage, Departure, PageTwo): page_name = F.__name__ frame = F(parent=container, controller=self) self.frames[page_name] = frame frame.config(bg="black") # or whatever color you like
在帧的for循环中,为背景添加一行:
相关问题 更多 >
编程相关推荐