Static members should work now. There's a test case in
bindings/wxwidgets/wxcore_print.i
%class %delete wxLuaPrintout, wxPrintout
...
%member static int ms_test_int
It is readable and writable as
wx.wxLuaPrintout.ms_test_int = 55
print(wx.wxLuaPrintout.ms_test_int)
p = wx.wxLuaPrintout("hello")
p.ms_test_int = 66 -- note '.' and not ':' since static members don't
need the 'self'
print(p.ms_test_int)
Let me know if this doesn't work for you now.
John
On Jan 4, 2008 6:55 PM, John Labenski <[EMAIL PROTECTED]> wrote:
> On Jan 3, 2008 9:47 AM, Klaas Holwerda <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > With the latest CVS the erorr is already in the create binding stage.
> >
> > %class %noclassinfo a2dDrawRectangleTool
> > %member static const a2dCommandId COMID_PushTool_DrawRectangle;
> > %endclass
> >
> >
> > Results in:
> >
> > --------------------Configuration: luawraps - Win32
> > Debug--------------------
> > Generating C:/data/art2d/wxArt2D/modules/luawraps/src/luabind.cpp
> > Generating wxWidgets Binding
> > Loaded rules file: luawraps_rules.lua
> > Loaded datatypes cache file:
> > c:/data/art2d/wxluacvs/wxLua/bindings/wxwidgets/wx_datatypes.lua
> > Timing: BuildDataTypeTable 0 seconds.
> > ERROR: Expected Member Name, got Tag='static'. File:
> > 'C:/data/art2d/wxArt2D/modules/luawraps/src/luabind.i':(line 92)
> > ' %member static const a2dCommandId COMID_PushTool_DrawRectangle;'
> >
> >
> > It looks like this static member data is something new, and not used yet in
> > wxWidgets itself.
> >
>
> Ok, I'll add the code for it this weekend. I'll let you know when it
> should work.
>
> Regards,
> John
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users