【发布时间】:2015-05-10 02:43:46
【问题描述】:
在 Kivy 中,Popup 显示为灰色,应该更改什么使其变为红色
我的弹出代码:
class MyPopup(Popup):
def show_popup(self):
content = BoxLayout(orientation="vertical")
content.add_widget(Label(text="Game Over", font_size=20))
mybutton_cancel = Button(text="Cancel", size_hint_y=None)
content.add_widget(mybutton_cancel)
mypopup = Popup(content = content,
title = "oops",
auto_dismiss = False,
size_hint = (.5, .5))
mybutton_cancel.bind(on_release=mypopup.dismiss)
mypopup.open()
我希望,很明显,我在谈论弹出窗口颜色,而不是弹出窗口或弹出文本颜色后面的背景屏幕颜色。我说的是弹出矩形的颜色。请指教。
【问题讨论】: