Simply use the following code:
txtCtrl.SetEditable(False)
# Also its a good idea to change the backgroud colour so user will know that is has became readonly.
txtCtrl.SetBackgroundColour((255,23,23))
Advertisements
Simply use the following code:
txtCtrl.SetEditable(False)
# Also its a good idea to change the backgroud colour so user will know that is has became readonly.
txtCtrl.SetBackgroundColour((255,23,23))
Thanks for this tip! Saved me some time, so thanks for sharing,
Luke
Why TF isn’t this SetEditable, like wx.Grid!?
And of course I mean EnableEditing(). See what I mean: damn inconsistency!