Lostgallifreyan <z.c...@btinternet.com> wrote: (01/01/2011 01:39) >frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, '') >sc = >wx.wxSpinCtrl(frame,1,"",wx.wxPoint(2,2),wx.wxSize(60,20),wx.wxSP_ARROW_KEYS+wx.wxTE_PROCESS_ENTER,0,10,5) >frame:Show(true) >sc.Value = 5 >sc.Value = sc.Value .. " XYZ" >--sc:SetValue(sc.Value .. " XYZ") > >Finally, retry by moving the -- to enable the :Get variant and comment out the >dot variant on line 5. >The dot variant causes SpinCtrl to panic because it is trying to directly >address the internal value, not the text field. TextCtrl is purely a text >field, which is why the difference wasn't revealed.
Sorry, Meant :Set variant, not :Get... Small error but I want to be exact when posting something this specific. Reading the value works either way with SpinCtrl, but writing into it doesn't. ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users