summaryrefslogtreecommitdiff
path: root/pyuno/demo
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno/demo')
-rw-r--r--pyuno/demo/swriter.py2
-rw-r--r--pyuno/demo/swritercomp.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pyuno/demo/swriter.py b/pyuno/demo/swriter.py
index 4f3916136c30..90a53e826545 100644
--- a/pyuno/demo/swriter.py
+++ b/pyuno/demo/swriter.py
@@ -67,7 +67,7 @@ rows = table.Rows
table.setPropertyValue( "BackTransparent", False )
table.setPropertyValue( "BackColor", 13421823 )
-row = rows.getByIndex(0)
+row = rows[0]
row.setPropertyValue( "BackTransparent", False )
row.setPropertyValue( "BackColor", 6710932 )
diff --git a/pyuno/demo/swritercomp.py b/pyuno/demo/swritercomp.py
index 3bdd252e4e44..7c200cc7bea5 100644
--- a/pyuno/demo/swritercomp.py
+++ b/pyuno/demo/swritercomp.py
@@ -68,7 +68,7 @@ class SWriterComp(XMain,unohelper.Base):
table.setPropertyValue( "BackTransparent", uno.Bool(0) )
table.setPropertyValue( "BackColor", 13421823 )
- row = rows.getByIndex(0)
+ row = rows[0]
row.setPropertyValue( "BackTransparent", uno.Bool(0) )
row.setPropertyValue( "BackColor", 6710932 )