Advertisement
Magum

LibreOffice zaklad vstup a vystup

Jan 28th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 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. pozicia = vstup(0,"B1")
  16. text = vstup(0,"A1")
  17. vystup(0,pozicia,text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement