sugar3.graphics.objectchooser module¶
STABLE.
-
class
sugar3.graphics.objectchooser.ObjectChooser(parent=None, what_filter=None, filter_type=None, show_preview=False)¶ Bases:
object-
destroy()¶
-
get_selected_object()¶
-
run()¶
-
-
sugar3.graphics.objectchooser.get_preview_pixbuf(preview_data, width=-1, height=-1)¶ Retrive a pixbuf with the content of the preview field
Keyword arguments: metadata – the metadata dictionary.
Can’t be None, use metadata.get(‘preview’, ‘’)width – the pixbuf width, if is not set, the default width will be used height – the pixbuf width, if is not set, the default height will be used
Return: a Pixbuf or None if couldn’t create it