From 51057baef5efe147c00c552f2be42dc77f336ee8 Mon Sep 17 00:00:00 2001 From: mandarj7 Date: Wed, 23 Dec 2015 16:59:26 +0530 Subject: [PATCH] Add usage example to sugar3.graphics.objectchooser --- src/sugar3/graphics/objectchooser.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sugar3/graphics/objectchooser.py b/src/sugar3/graphics/objectchooser.py index 3428e072..e7fad885 100644 --- a/src/sugar3/graphics/objectchooser.py +++ b/src/sugar3/graphics/objectchooser.py @@ -152,6 +152,13 @@ class ObjectChooser(object): show_preview (bool): if True will show the preview image asociated with the object in the Journal. This option is only available if filter_type is selected. + + Examples: + chooser = ObjectChooser(self._activity, what_filter='Image') + + chooser = ObjectChooser(parent=self, + what_filter=self.get_bundle_id(), + filter_type=FILTER_TYPE_ACTIVITY) """ def __init__(self, parent=None, what_filter=None, filter_type=None,