Add usage example to sugar3.graphics.objectchooser
This commit is contained in:
parent
c95d74eab4
commit
51057baef5
@ -152,6 +152,13 @@ class ObjectChooser(object):
|
|||||||
show_preview (bool): if True will show the preview image asociated with
|
show_preview (bool): if True will show the preview image asociated with
|
||||||
the object in the Journal. This option is only available if
|
the object in the Journal. This option is only available if
|
||||||
filter_type is selected.
|
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,
|
def __init__(self, parent=None, what_filter=None, filter_type=None,
|
||||||
|
Loading…
Reference in New Issue
Block a user