vendredi 4 juillet 2014

Python StyledTextCtrl can't make read only


Vote count:

0




Hi have a StyledTextCtrl log window in which I only want to write text to via python, and NOT be able to type on the keyboard to enter text onto in manually. When I use SetEditable(False) this locks the whole window, so python can't write to the window as well. How do I get it so python can write to it but I can't?



self.running_log1 = wx.stc.StyledTextCtrl(self, pos=(5, 5), size=(575,505))
self.running_log1.SetMarginWidth(1, 0)
self.running_log1.SetEditable(False)

----------------------------

self.running_log1.AppendText(line)


asked 18 secs ago






Aucun commentaire:

Enregistrer un commentaire