From: John L. <jla...@gm...> - 2012-09-25 02:25:09
|
Please create new threads for new subjects. On Mon, Sep 24, 2012 at 6:04 AM, Victor Bombi <so...@te...> wrote: > > /////////// > I am trying to use dc:DrawLines but I cant understand how wxList or > wxPointList work: > > local plist=wx.wxPointList > --plist:Append(wx.wxPoint(0,0)) > plist[0]=0 > plist[30]=30 > --plist:Append(wx.wxPoint(30,30)) > dc:DrawLines(plist) > > Append is not recognized as a method, plist is said to be not a wxPointList. > I cant imagine how should be done. It can't be used currently. I have wondered if it's really worth it. The idea is that you can optimize the drawing with a list, but in a scripting language the creation of the list itself may negate any benefits. Just call the DrawLine() functions individually for now. Regards, John |