Re: [wxlua-users] Manual delete on wx

2013-11-15 Thread Andreas Falkenhahn
On 15.11.2013 at 23:37 John Labenski wrote: > On Fri, Nov 15, 2013 at 5:34 PM, Andreas Falkenhahn > wrote: > > On 15.11.2013 at 23:28 John Labenski wrote: > >> You are supposed to use myButton:Destroy() to let wxWidgets >> properly delete it. The delete() function is available only for >>

Re: [wxlua-users] Manual delete on wx

2013-11-15 Thread John Labenski
On Fri, Nov 15, 2013 at 5:34 PM, Andreas Falkenhahn wrote: > On 15.11.2013 at 23:28 John Labenski wrote: > > > You are supposed to use myButton:Destroy() to let wxWidgets > > properly delete it. The delete() function is available only for > > objects that are not owned by something else. It works

Re: [wxlua-users] Manual delete on wx

2013-11-15 Thread Andreas Falkenhahn
On 15.11.2013 at 23:28 John Labenski wrote: > On Fri, Nov 15, 2013 at 4:23 PM, Andreas Falkenhahn > wrote: > > Hi, > > how is manual delete supposed to work in wxLua? I tried to call > > myButton = wx.wxButton() > myButton:delete() > > You are supposed to use myButton:Destroy()

Re: [wxlua-users] Manual delete on wx

2013-11-15 Thread John Labenski
On Fri, Nov 15, 2013 at 4:23 PM, Andreas Falkenhahn wrote: > Hi, > > how is manual delete supposed to work in wxLua? I tried to call > > myButton = wx.wxButton() > myButton:delete() > > You are supposed to use myButton:Destroy() to let wxWidgets properly delete it. The delete() function is ava