Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 更改wx.MDIParentFrame的背景色_Python_Wxpython_Wxwidgets - Fatal编程技术网

Python 更改wx.MDIParentFrame的背景色

Python 更改wx.MDIParentFrame的背景色,python,wxpython,wxwidgets,Python,Wxpython,Wxwidgets,wx.MDIParentFrame背景的默认颜色为深灰色。我想换那种颜色 有人知道怎么做吗 我看不到改变默认背景的方法,还有其他方法吗?因为它是从帧继承的,所以你不能这么做吗 my_MIDIParentFrame.SetBackgroundColour("black") ? 也许你可以这样做 wx.Frame.SetBackgroundColour(my_MIDI_PARENT_FRAME,"black") 我不确定。。。但我认为这些都会起作用…您可以使用MDIAUIParentFrame

wx.MDIParentFrame背景的默认颜色为深灰色。我想换那种颜色

有人知道怎么做吗


我看不到改变默认背景的方法,还有其他方法吗?

因为它是从帧继承的,所以你不能这么做吗

my_MIDIParentFrame.SetBackgroundColour("black") ?
也许你可以这样做

wx.Frame.SetBackgroundColour(my_MIDI_PARENT_FRAME,"black")

我不确定。。。但我认为这些都会起作用…

您可以使用MDIAUIParentFrame来完成


谢谢您的回复,但我尝试此功能时没有任何效果。我正在运行XPhmmm dang,我认为这会起作用。。。无论如何,这里有一个例子,其中颜色设置,但它不完全是你想要的,但可能会有所帮助,这是一个很好的例子,但我不能让它在这里工作,它有点问题。您认为可以使用面板然后设置面板的颜色吗?我使用任何
setbackgroundcolor()
方法的经验是,在对象更改颜色之前,您需要在对象上调用
Refresh()
。这有用吗?