2010-01-07 41 views

回答

0

从PythonCard生成的GUI类中:

self.components.myTextArea.clear() ## clear the TextArea 
self.components.myTextArea.text = "initial text" ## directly set text 
self.components.myTextArea.appendText("\nhello world") ## append text 
self.components.myTextArea.writeText("\nhello world2") ## append text