incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 115805] macro python dictionary
Date Tue, 24 Jul 2012 05:27:33 GMT

hanya <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #2 from hanya <> ---
I can not reproduce the problem. The following code seems working.

def HelloWorldPython( ):
    """Prints the string 'Hello World(in Python)' into the current document"""
#get the doc from the scripting context which is made available to all scripts
    model = XSCRIPTCONTEXT.getDocument()
#get the XText interface
    text = model.Text
#create an XTextRange at the end of the document
    tRange = text.End
#and set the string
    tRange.String = "Hello World (in Python)"
    tr ={}
    return None

You are receiving this mail because:
You are on the CC list for the bug.

View raw message