Kaydet (Commit) 1aad39e4 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS pyunofixes2 (1.2.34); FILE MERGED

2005/11/01 13:19:11 jbu 1.2.34.1: #i44632# text is now append to end of document as the other HelloWorld examples do (contributed by bmarcelly)
üst dbf84e82
...@@ -6,9 +6,8 @@ def HelloWorldPython( ): ...@@ -6,9 +6,8 @@ def HelloWorldPython( ):
model = XSCRIPTCONTEXT.getDocument() model = XSCRIPTCONTEXT.getDocument()
#get the XText interface #get the XText interface
text = model.Text text = model.Text
#create an XTextCursor #create an XTextRange at the end of the document
cursor = text.createTextCursor() tRange = text.End
#and insert the string #and set the string
text.insertString( cursor, "Hello World (in Python)", 0 ) tRange.String = "Hello World (in Python)"
return None return None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment