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

From The Document Foundation Wiki
Jump to: navigation, search

def mi_primera_macro_en_calc():

   doc = XSCRIPTCONTEXT.getDocument()
   cell = doc.Sheets[0]['A1']
   cell.setString('Hola, mundo, en Python en Calc')
   return 

</syntaxhighlight>