From: Andre A. <ar...@ki...> - 2011-01-01 00:43:59
|
> > Which is nice but I'd hoped it cut both ways. :) Sadly, while EV.Id neatly replaces EV:GetId(), you can't do > SC.Value=SC.Value.."text" to force text replacement in a SpinCtrl derived directly from its own value, > but you CAN do it with SC:SetValue(SC.Value.."text"). I guess I can either use the dot for reading but not > writing, or stay with Set and Get for symmetry... Both approaches seem useful to me. > I think they should be identical. try frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, '') tc = wx.wxTextCtrl(frame,1) frame:Show(true) tc.Value = 'a' tc.Value = tc.Value .. ' 123' Andre |