From 3c8b5325de660cf16003105a71e0fd15a55fe695 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Fri, 12 Jan 2007 15:22:18 +0000 Subject: Launch docs from the clipboard in abi. --- (limited to 'AbiWordActivity.py') diff --git a/AbiWordActivity.py b/AbiWordActivity.py index 484e98c..60ac98b 100644 --- a/AbiWordActivity.py +++ b/AbiWordActivity.py @@ -28,3 +28,11 @@ class AbiWordActivity (Activity): self.abiword_canvas.load_file("") self.abiword_canvas.show() vbox.add(self.abiword_canvas) + + def execute(self, command, args): + if(command == 'open_document'): + self.abiword_canvas.load_file('file://' + args[0]) + + return True + else: + return False -- cgit v0.9.1