From 574cfcacc5489f8995d697126dd463e3df25a4d6 Mon Sep 17 00:00:00 2001 From: Mayank Suman Date: Thu, 3 Oct 2019 16:28:07 +0530 Subject: tdf#97361: Removed getByTindex in Pyuno pytests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idf2e8567a154b25b1625b9cd1651bd77cc684859 Reviewed-on: https://gerrit.libreoffice.org/80116 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ --- pyuno/demo/swriter.py | 2 +- pyuno/demo/swritercomp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pyuno/demo') 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 ) -- cgit