Translations:Macros/Python Guide/My first macro/7/es

From The Document Foundation Wiki
Jump to: navigation, search

def mi_primera_macro_en_writer():

   doc = XSCRIPTCONTEXT.getDocument()
   text = doc.getText()
   text.setString('Hola, mundo, en Python en Writer')
   return 

</syntaxhighlight>