wxPython wx.StaticText中的GetBackgroundColour()函数
在这篇文章中,我们将学习与wxPython的wx.StaticText类有关的GetBackgroundColor()函数。GetBackgroundColor()函数返回用于静态文本背景的颜色。颜色的格式为(R, G, B, A)。GetBackgroundColor()函数中不需要参数。
语法: wx.StaticText.GetBackgroundColor(self)
参数: GetBackgroundColor()函数中不需要参数。
返回类型: wx.Colour
代码示例 。
控制台输出:
(10,20,255,255)
输出窗口: