Showing posts with label Python: Tips. Show all posts
Showing posts with label Python: Tips. Show all posts

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