2010-01-07 49 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