Monday, June 30, 2008

Setting wx.TextCtrl readonly

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))

1 comment:

Luke Clements said...

Thanks for this tip! Saved me some time, so thanks for sharing,
Luke