summaryrefslogtreecommitdiff
path: root/pyuno/demo
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno/demo')
-rw-r--r--pyuno/demo/hello_world_comp.py1
-rw-r--r--pyuno/demo/ooextract.py7
-rw-r--r--pyuno/demo/swriter.py4
3 files changed, 3 insertions, 9 deletions
diff --git a/pyuno/demo/hello_world_comp.py b/pyuno/demo/hello_world_comp.py
index 646a124a47b8..020953b4f41a 100644
--- a/pyuno/demo/hello_world_comp.py
+++ b/pyuno/demo/hello_world_comp.py
@@ -17,7 +17,6 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-import uno
import unohelper
from com.sun.star.task import XJobExecutor
diff --git a/pyuno/demo/ooextract.py b/pyuno/demo/ooextract.py
index d6cce94e80d5..a5699548ce22 100644
--- a/pyuno/demo/ooextract.py
+++ b/pyuno/demo/ooextract.py
@@ -19,13 +19,12 @@
import getopt,sys
import uno
-from unohelper import Base,systemPathToFileUrl, absolutize
-from os import getcwd
+from unohelper import Base,systemPathToFileUrl
+from os import getcwd
from com.sun.star.beans import PropertyValue
-from com.sun.star.beans.PropertyState import DIRECT_VALUE
from com.sun.star.uno import Exception as UnoException
-from com.sun.star.io import IOException,XInputStream, XOutputStream
+from com.sun.star.io import IOException, XOutputStream
class OutputStream(Base, XOutputStream):
def __init__(self):
diff --git a/pyuno/demo/swriter.py b/pyuno/demo/swriter.py
index 90a53e826545..70af4f98d003 100644
--- a/pyuno/demo/swriter.py
+++ b/pyuno/demo/swriter.py
@@ -19,16 +19,12 @@
# bootstrap uno component context
import uno
-import unohelper
-
-from com.sun.star.lang import IllegalArgumentException
# a UNO struct later needed to create a document
from com.sun.star.text.ControlCharacter import PARAGRAPH_BREAK
from com.sun.star.text.TextContentAnchorType import AS_CHARACTER
from com.sun.star.awt import Size
-
def insertTextIntoCell( table, cellName, text, color ):
tableText = table.getCellByName( cellName )
cursor = tableText.createTextCursor()