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