Advertisement
Magum

LibreOffice kalkulacka na scitanie

Jan 28th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import uno
  2.  
  3. def vstup(harok,pozicia):
  4. doc = XSCRIPTCONTEXT.getDocument()
  5. bunka = doc.Sheets[0][pozicia].getString()
  6. return bunka
  7.  
  8. def vystup(harok,pozicia,text):
  9. doc = XSCRIPTCONTEXT.getDocument()
  10. bunka = doc.Sheets[harok][pozicia]
  11. bunka.setString(text)
  12. return
  13.  
  14. def main():
  15. a = vstup(0,'A1')
  16. b = vstup(0,'B1')
  17. c = int(a) + int(b)
  18. vystup(0,'D1',str(c))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement