Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | macro python dictionary | ||
---|---|---|---|
Product: | Build Tools | Reporter: | ddavout <danielle.davout> |
Component: | external prerequisites | Assignee: | Martin Hollmichel <nesshof> |
Status: | CLOSED IRREPRODUCIBLE | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | hanya.runo, issues |
Version: | 4.0.0-dev | ||
Target Milestone: | --- | ||
Hardware: | Unknown | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
ddavout
2010-11-26 21:30:51 UTC
. 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 ={} tr[1]=1 return None Close as unabled to reproduce. |