Issue 115805 - macro python dictionary
macro python dictionary
Product: Build Tools
Classification: Code
Component: external prerequisites
Unknown Windows 7
: P3 trivial (vote)
: ---
Assigned To: Martin Hollmichel
Depends on:
  Show dependency treegraph
Reported: 2010-11-26 21:30 UTC by ddavout
Modified: 2014-01-11 15:21 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation on: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description ddavout 2010-11-26 21:30:51 UTC
I just add to a copy of inside
C:\Users\computer\AppData\Roaming\\3\user\Scripts\python or in

tr ={}

then the function HelloWord is no more offered to choose as a macro to be executed
remove tr[1]=1, it is ok...

(Why I have to "choose" subcomponent www ? for this issue regrading macros)
Comment 1 Marcus 2010-11-26 23:38:05 UTC
Comment 2 hanya 2012-07-24 05:27:33 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 ={}
    return None
Comment 3 hanya 2014-01-11 15:21:26 UTC
Close as unabled to reproduce.