On Thu, Oct 21, 2010 at 2:44 PM, Jean-Yves F. Barbier <[email protected]> wrote:
> Hi list,
>
> I use the python output of wxformbuilder to help me into wxLua, and I've
> got a PB with a line.
> ORG:
> self.staticTextLNBROWS.SetForegroundColour( wx.SystemSettings.GetColour(
> wx.SYS_COLOUR_GRAYTEXT ) )
>
> The only way I found to avoid error:
> staticTextLNBROWS:SetForegroundColour( wx.wxColour("wxSYS_COLOUR_GRAYTEXT") )
>
> Is it a good solution or not?
Yes, but this would be a little faster since it doesn't use a string.
Note the wx.wxXXX, wxPython got rid of the second "wx" while wxLua
leaves it in for clarity since it doesn't have to be installed to the
"wx" Lua table.
staticTextLNBROWS:SetForegroundColour( wx.SystemSettings.GetColour(
wx.wxSYS_COLOUR_GRAYTEXT ) )
Regards,
John
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users