On Jan 8, 2008 11:03 AM, Andre <[EMAIL PROTECTED]> wrote:
> I have an object which is a userdata.
> I expect it to be a wxfont.
> How could I verify that this is true?
>
f = wx.wxNORMAL_FONT
print(f)
print(tostring(f))
print(wxlua.type(f))
f_type = select(2, wxlua.type(f))
print(f_type, wxlua.typename(f_type))
Running lua script '*untitled.lua' : Tue Jan 08
userdata: 01CF2A28 [wxFont(014BB490, 159)]
userdata: 01CF2A28 [wxFont(014BB490, 159)]
wxFont 159 userdata 7
159 wxFont
End lua script : Tue Jan 08
Execution time : 0.000(s)
See bindings/wxlua/wxlua.i in wxluaref.html.
Hope this helps,
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