On Tue, May 4, 2010 at 3:50 AM, Chunlin Zhang <zhangchun...@gmail.com> wrote: > In wxpython define a new event can use this code: > ''' > # This creates a new Event class and a EVT binder function > (UpdateBarEvent, EVT_UPDATE_BARGRAPH) = wx.lib.newevent.NewEvent() > ''' > > How can I do same job in lua using wxlua? > I searched for the example of wxlua(I am using Lua For Windows) and > wxlua document,and do not find out the solution.
Unfortunately the function wxNewEventType() is not currently wrapped. However it is simple enough to simulate one by picking some generic event, wxEVT_COMMAND_ENTER or whatever you like, and send a wxCommandEvent with that type and a unique ID. You will use the unique ID to differentiate your event from other events. Regards, John ------------------------------------------------------------------------------ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users