Sugar-Toolkit-GTK4

Activity Framework

  • sugar.activity package
    • Submodules
    • sugar.activity.activity module
      • Activity
      • PREVIEW_SIZE
      • Activity
        • Activity.__init__()
        • Activity.add_stop_button()
        • Activity.iconify()
        • Activity.run_main_loop()
        • Activity.get_active()
        • Activity.set_active()
        • Activity.active
        • Activity.get_max_participants()
        • Activity.set_max_participants()
        • Activity.get_id()
        • Activity.get_bundle_id()
        • Activity.get_canvas()
        • Activity.set_canvas()
        • Activity.canvas
        • Activity.get_activity_root()
        • Activity.read_file()
        • Activity.write_file()
        • Activity.notify_user()
        • Activity.get_preview()
        • Activity.save()
        • Activity.copy()
        • Activity.get_shared_activity()
        • Activity.get_shared()
        • Activity.invite()
        • Activity.share()
        • Activity.can_close()
        • Activity.close()
        • Activity.get_metadata()
        • Activity.metadata
        • Activity.handle_view_source()
        • Activity.get_document_path()
        • Activity.busy()
        • Activity.unbusy()
      • SimpleActivity
        • SimpleActivity.__init__()
      • get_bundle_name()
      • get_bundle_path()
      • get_activity_root()
      • show_object_in_journal()
      • launch_bundle()
      • get_bundle()
    • sugar.activity.activityhandle module
      • ActivityHandle
        • ActivityHandle.__init__()
        • ActivityHandle.get_dict()
        • ActivityHandle.create_from_dict()
        • ActivityHandle.__repr__()
    • sugar.activity.widgets module
      • ActivityButton
        • ActivityButton.__init__()
      • ActivityToolbarButton
        • ActivityToolbarButton.__init__()
      • StopButton
        • StopButton.__init__()
      • UndoButton
        • UndoButton.__init__()
      • RedoButton
        • RedoButton.__init__()
      • CopyButton
        • CopyButton.__init__()
      • PasteButton
        • PasteButton.__init__()
      • ShareButton
        • ShareButton.__init__()
      • TitleEntry
        • TitleEntry.__init__()
        • TitleEntry.save_title()
      • DescriptionItem
        • DescriptionItem.__init__()
        • DescriptionItem.set_expanded()
        • DescriptionItem.get_toolbar_box()
        • DescriptionItem.toolbar_box
      • ActivityToolbar
        • ActivityToolbar.__init__()
      • EditToolbar
        • EditToolbar.__init__()
    • Module contents
      • Activity Module
      • Activity
        • Activity.__init__()
        • Activity.add_stop_button()
        • Activity.busy()
        • Activity.can_close()
        • Activity.canvas
        • Activity.close()
        • Activity.copy()
        • Activity.get_active()
        • Activity.get_activity_root()
        • Activity.get_bundle_id()
        • Activity.get_canvas()
        • Activity.get_document_path()
        • Activity.get_id()
        • Activity.get_max_participants()
        • Activity.get_metadata()
        • Activity.get_preview()
        • Activity.get_shared()
        • Activity.get_shared_activity()
        • Activity.handle_view_source()
        • Activity.iconify()
        • Activity.invite()
        • Activity.metadata
        • Activity.notify_user()
        • Activity.read_file()
        • Activity.run_main_loop()
        • Activity.save()
        • Activity.set_active()
        • Activity.set_canvas()
        • Activity.set_max_participants()
        • Activity.share()
        • Activity.unbusy()
        • Activity.write_file()
      • SimpleActivity
        • SimpleActivity.__init__()

Graphics & UI

  • sugar.graphics package
    • Submodules
    • sugar.graphics.alert module
      • Alert
        • Alert.__init__()
        • Alert.do_set_property()
        • Alert.do_get_property()
        • Alert.add_entry()
        • Alert.add_button()
        • Alert.remove_button()
      • ConfirmationAlert
        • ConfirmationAlert.__init__()
      • ErrorAlert
        • ErrorAlert.__init__()
      • TimeoutAlert
        • TimeoutAlert.__init__()
      • NotifyAlert
        • NotifyAlert.__init__()
    • sugar.graphics.animator module
      • Animator
      • Animator
        • Animator.__init__()
        • Animator.add()
        • Animator.remove_all()
        • Animator.start()
        • Animator.stop()
      • Animation
        • Animation.__init__()
        • Animation.do_frame()
        • Animation.next_frame()
        • Animation.do_stop()
      • FadeAnimation
        • FadeAnimation.__init__()
        • FadeAnimation.next_frame()
      • ScaleAnimation
        • ScaleAnimation.__init__()
        • ScaleAnimation.next_frame()
      • MoveAnimation
        • MoveAnimation.__init__()
        • MoveAnimation.next_frame()
      • ColorAnimation
        • ColorAnimation.__init__()
        • ColorAnimation.next_frame()
    • sugar.graphics.icon module
      • Icons - GTK4
      • Icon
        • Icon.__init__()
        • Icon.do_snapshot()
        • Icon.do_measure()
        • Icon.get_icon_name()
        • Icon.set_icon_name()
        • Icon.get_file_name()
        • Icon.set_file_name()
        • Icon.get_pixel_size()
        • Icon.set_pixel_size()
        • Icon.get_fill_color()
        • Icon.set_fill_color()
        • Icon.get_stroke_color()
        • Icon.set_stroke_color()
        • Icon.get_xo_color()
        • Icon.set_xo_color()
        • Icon.get_badge_name()
        • Icon.set_badge_name()
        • Icon.get_alpha()
        • Icon.set_alpha()
        • Icon.get_scale()
        • Icon.set_scale()
        • Icon.get_badge_size()
        • Icon.get_pixbuf()
        • Icon.set_pixbuf()
        • Icon.get_gtk_image()
      • EventIcon
        • EventIcon.__init__()
        • EventIcon.get_background_color()
        • EventIcon.set_background_color()
        • EventIcon.get_cache()
        • EventIcon.set_cache()
      • CanvasIcon
        • CanvasIcon.__init__()
        • CanvasIcon.do_snapshot()
      • CellRendererIcon
        • CellRendererIcon.__init__()
        • CellRendererIcon.set_icon_name()
        • CellRendererIcon.set_file_name()
        • CellRendererIcon.set_xo_color()
        • CellRendererIcon.set_fill_color()
        • CellRendererIcon.set_stroke_color()
        • CellRendererIcon.set_size()
        • CellRendererIcon.get_surface()
      • get_icon_file_name()
      • get_icon_state()
      • get_surface()
    • sugar.graphics.menuitem module
      • MenuItem
      • MenuItem
        • MenuItem.__init__()
        • MenuItem.set_accelerator()
        • MenuItem.get_accelerator()
        • MenuItem.set_text()
        • MenuItem.get_text()
      • MenuSeparator
        • MenuSeparator.__init__()
    • sugar.graphics.objectchooser module
      • get_preview_pixbuf()
      • ObjectChooser
        • ObjectChooser.__init__()
        • ObjectChooser.run()
        • ObjectChooser.get_selected_object()
        • ObjectChooser.destroy()
    • sugar.graphics.palette module
      • Palette
        • Palette.__init__()
        • Palette.get_full_size_request()
        • Palette.popup()
        • Palette.popdown()
        • Palette.on_enter()
        • Palette.set_primary_text()
        • Palette.get_primary_text()
        • Palette.set_secondary_text()
        • Palette.get_secondary_text()
        • Palette.set_icon()
        • Palette.get_icon()
        • Palette.set_icon_visible()
        • Palette.get_icon_visible()
        • Palette.set_content()
        • Palette.get_label_width()
        • Palette.get_menu()
      • PaletteActionBar
        • PaletteActionBar.__init__()
        • PaletteActionBar.add_action()
    • sugar.graphics.palettegroup module
      • get_group()
      • popdown_all()
      • Group
        • Group.__init__()
        • Group.is_up()
        • Group.get_state()
        • Group.add()
        • Group.remove()
        • Group.popdown()
    • sugar.graphics.palettemenu module
      • PaletteMenu
      • PaletteMenuBox
        • PaletteMenuBox.__init__()
        • PaletteMenuBox.append_item()
      • PaletteMenuItemSeparator
        • PaletteMenuItemSeparator.__init__()
      • PaletteMenuItem
        • PaletteMenuItem.__init__()
        • PaletteMenuItem.set_label()
        • PaletteMenuItem.get_label()
        • PaletteMenuItem.set_image()
        • PaletteMenuItem.set_accelerator()
        • PaletteMenuItem.set_sensitive()
      • create_menu_item()
      • create_separator()
      • create_submenu_item()
      • PaletteMenuGroup
        • PaletteMenuGroup.__init__()
        • PaletteMenuGroup.add_item()
        • PaletteMenuGroup.set_sensitive()
        • PaletteMenuGroup.set_visible()
      • PaletteMenuBuilder
        • PaletteMenuBuilder.__init__()
        • PaletteMenuBuilder.add_item()
        • PaletteMenuBuilder.add_separator()
        • PaletteMenuBuilder.get_menu_box()
        • PaletteMenuBuilder.get_group()
    • sugar.graphics.palettewindow module
      • MouseSpeedDetector
        • MouseSpeedDetector.__init__()
        • MouseSpeedDetector.start()
        • MouseSpeedDetector.stop()
      • PaletteWindow
        • PaletteWindow.__init__()
        • PaletteWindow.destroy()
        • PaletteWindow.set_invoker()
        • PaletteWindow.get_invoker()
        • PaletteWindow.set_content()
        • PaletteWindow.is_up()
        • PaletteWindow.set_group_id()
        • PaletteWindow.get_group_id()
        • PaletteWindow.update_position()
        • PaletteWindow.get_full_size_request()
        • PaletteWindow.popup()
        • PaletteWindow.popdown()
        • PaletteWindow.on_invoker_enter()
        • PaletteWindow.on_invoker_leave()
        • PaletteWindow.on_enter()
        • PaletteWindow.on_leave()
        • PaletteWindow.get_rect()
      • Invoker
        • Invoker.ANCHORED
        • Invoker.AT_CURSOR
        • Invoker.BOTTOM
        • Invoker.RIGHT
        • Invoker.TOP
        • Invoker.LEFT
        • Invoker.__init__()
        • Invoker.attach()
        • Invoker.detach()
        • Invoker.get_position_for_alignment()
        • Invoker.get_position()
        • Invoker.get_alignment()
        • Invoker.has_rectangle_gap()
        • Invoker.draw_rectangle()
        • Invoker.notify_popup()
        • Invoker.notify_popdown()
        • Invoker.notify_mouse_enter()
        • Invoker.notify_mouse_leave()
        • Invoker.notify_right_click()
        • Invoker.notify_toggle_state()
        • Invoker.get_palette()
        • Invoker.set_palette()
        • Invoker.get_cache_palette()
        • Invoker.set_cache_palette()
        • Invoker.get_toggle_palette()
        • Invoker.set_toggle_palette()
        • Invoker.get_lock_palette()
        • Invoker.set_lock_palette()
        • Invoker.primary_text_clicked()
        • Invoker.get_rect()
        • Invoker.get_toplevel()
      • WidgetInvoker
        • WidgetInvoker.__init__()
        • WidgetInvoker.attach_widget()
        • WidgetInvoker.detach()
        • WidgetInvoker.get_rect()
        • WidgetInvoker.has_rectangle_gap()
        • WidgetInvoker.draw_rectangle()
        • WidgetInvoker.get_widget()
        • WidgetInvoker.set_widget()
        • WidgetInvoker.get_toplevel()
        • WidgetInvoker.notify_popup()
        • WidgetInvoker.notify_popdown()
      • CursorInvoker
        • CursorInvoker.__init__()
        • CursorInvoker.attach()
        • CursorInvoker.detach()
        • CursorInvoker.get_rect()
        • CursorInvoker.get_toplevel()
      • ToolInvoker
        • ToolInvoker.__init__()
        • ToolInvoker.attach_tool()
        • ToolInvoker.primary_text_clicked()
        • ToolInvoker.notify_popup()
        • ToolInvoker.notify_popdown()
      • TreeViewInvoker
        • TreeViewInvoker.__init__()
        • TreeViewInvoker.attach_treeview()
        • TreeViewInvoker.detach()
        • TreeViewInvoker.get_rect()
        • TreeViewInvoker.get_toplevel()
        • TreeViewInvoker.notify_popdown()
    • sugar.graphics.radiopalette module
      • RadioPalette
      • RadioMenuButton
        • RadioMenuButton.__init__()
        • RadioMenuButton.get_selected_button()
        • RadioMenuButton.set_selected_button()
      • RadioToolsButton
        • RadioToolsButton.__init__()
        • RadioToolsButton.do_clicked()
      • RadioPalette
        • RadioPalette.__init__()
        • RadioPalette.append()
        • RadioPalette.update_button()
        • RadioPalette.popdown()
        • RadioPalette.popup()
        • RadioPalette.get_buttons()
        • RadioPalette.get_selected_button()
    • sugar.graphics.radiotoolbutton module
      • RadioToolButton
        • RadioToolButton.__init__()
        • RadioToolButton.get_group()
        • RadioToolButton.set_group()
        • RadioToolButton.get_active()
        • RadioToolButton.set_active()
    • sugar.graphics.style module
      • Style
      • Font
        • Font.__init__()
        • Font.__str__()
        • Font.get_pango_desc()
        • Font.get_css_string()
      • Color
        • Color.__init__()
        • Color.get_rgba()
        • Color.get_int()
        • Color.get_gdk_rgba()
        • Color.get_gdk_color()
        • Color.get_html()
        • Color.get_css_rgba()
        • Color.get_svg()
        • Color.with_alpha()
      • zoom()
      • apply_css_to_widget()
      • ZOOM_FACTOR
      • DEFAULT_SPACING
      • DEFAULT_PADDING
      • GRID_CELL_SIZE
      • LINE_WIDTH
      • STANDARD_ICON_SIZE
      • SMALL_ICON_SIZE
      • MEDIUM_ICON_SIZE
      • LARGE_ICON_SIZE
      • XLARGE_ICON_SIZE
      • FONT_SIZE
      • FONT_FACE
      • FONT_NORMAL
      • FONT_BOLD
      • FONT_NORMAL_H
      • FONT_BOLD_H
      • FONT_ITALIC
      • COLOR_BLACK
      • COLOR_WHITE
      • COLOR_TRANSPARENT
      • COLOR_PANEL_GREY
      • COLOR_SELECTION_GREY
      • COLOR_TOOLBAR_GREY
      • COLOR_BUTTON_GREY
      • COLOR_INACTIVE_FILL
      • COLOR_INACTIVE_STROKE
      • COLOR_TEXT_FIELD_GREY
      • COLOR_HIGHLIGHT
      • COLOR_PRIMARY
      • COLOR_SUCCESS
      • COLOR_WARNING
      • COLOR_ERROR
      • PALETTE_CURSOR_DISTANCE
      • TOOLBAR_ARROW_SIZE
      • MENU_WIDTH_CHARS
      • BORDER_RADIUS
      • SHADOW_BLUR
      • TRANSITION_DURATION
    • sugar.graphics.toolbarbox module
      • ToolbarBox
      • ToolbarButton
        • ToolbarButton.__init__()
        • ToolbarButton.get_toolbar_box()
        • ToolbarButton.toolbar_box
        • ToolbarButton.get_page()
        • ToolbarButton.set_page()
        • ToolbarButton.is_in_palette()
        • ToolbarButton.is_expanded()
        • ToolbarButton.popdown()
        • ToolbarButton.set_expanded()
        • ToolbarButton.do_snapshot()
      • ToolbarBox
        • ToolbarBox.__init__()
        • ToolbarBox.get_toolbar()
        • ToolbarBox.toolbar
        • ToolbarBox.get_expanded_button()
        • ToolbarBox.set_expanded_button()
        • ToolbarBox.expanded_button
        • ToolbarBox.get_padding()
        • ToolbarBox.set_padding()
    • sugar.graphics.toolbox module
      • Toolbox
      • Toolbox
        • Toolbox.__init__()
        • Toolbox.add_toolbar()
        • Toolbox.remove_toolbar()
        • Toolbox.set_current_toolbar()
        • Toolbox.get_current_toolbar()
        • Toolbox.get_toolbar_count()
        • Toolbox.get_toolbar_at()
        • Toolbox.set_toolbar_label()
        • Toolbox.get_toolbar_label()
        • Toolbox.current_toolbar
    • sugar.graphics.combobox module
      • ComboBox
        • ComboBox.__init__()
        • ComboBox.get_value()
        • ComboBox.append_item()
        • ComboBox.append_separator()
        • ComboBox.get_active_item()
        • ComboBox.remove_all()
    • sugar.graphics.toolcombobox module
      • ToolComboBox
        • ToolComboBox.__init__()
        • ToolComboBox.do_set_property()
        • ToolComboBox.set_label_text()
        • ToolComboBox.get_label_text()
    • sugar.graphics.toggletoolbutton module
      • ToggleToolButton
        • ToggleToolButton.__init__()
        • ToggleToolButton.set_icon_name()
        • ToggleToolButton.get_icon_name()
        • ToggleToolButton.create_palette()
        • ToggleToolButton.get_palette()
        • ToggleToolButton.set_palette()
        • ToggleToolButton.get_palette_invoker()
        • ToggleToolButton.set_palette_invoker()
        • ToggleToolButton.set_tooltip()
        • ToggleToolButton.set_accelerator()
        • ToggleToolButton.get_accelerator()
        • ToggleToolButton.do_snapshot()
        • ToggleToolButton.do_clicked()
    • sugar.graphics.toolbutton module
      • ToolButton
      • setup_accelerator()
      • ToolButton
        • ToolButton.__init__()
        • ToolButton.set_tooltip()
        • ToolButton.get_tooltip()
        • ToolButton.get_hide_tooltip_on_click()
        • ToolButton.set_hide_tooltip_on_click()
        • ToolButton.set_accelerator()
        • ToolButton.get_accelerator()
        • ToolButton.set_icon_name()
        • ToolButton.get_icon_name()
        • ToolButton.set_icon_widget()
        • ToolButton.get_icon_widget()
        • ToolButton.set_label()
        • ToolButton.get_label()
        • ToolButton.create_palette()
        • ToolButton.get_palette()
        • ToolButton.set_palette()
        • ToolButton.get_palette_invoker()
        • ToolButton.set_palette_invoker()
        • ToolButton.do_snapshot()
        • ToolButton.set_active()
        • ToolButton.get_active()
    • sugar.graphics.window module
      • Window - GTK4 Port
      • UnfullscreenButton
        • UnfullscreenButton.__init__()
        • UnfullscreenButton.connect_button_clicked()
      • Window
        • Window.__init__()
        • Window.reveal()
        • Window.is_fullscreen()
        • Window.fullscreen()
        • Window.unfullscreen()
        • Window.set_canvas()
        • Window.get_canvas()
        • Window.set_toolbar_box()
        • Window.get_toolbar_box()
        • Window.set_tray()
        • Window.add_alert()
        • Window.remove_alert()
        • Window.set_enable_fullscreen_mode()
        • Window.get_enable_fullscreen_mode()
        • Window.canvas
        • Window.toolbar_box
    • sugar.graphics.xocolor module
      • XoColor - GTK4 Port
      • XoColor
        • XoColor.__init__()
        • XoColor.__eq__()
        • XoColor.__ne__()
        • XoColor.__hash__()
        • XoColor.__str__()
        • XoColor.__repr__()
        • XoColor.get_stroke_color()
        • XoColor.get_fill_color()
        • XoColor.to_string()
        • XoColor.from_string()
        • XoColor.get_random_color()
        • XoColor.to_rgba_tuple()
    • Module contents
      • Graphics Module
      • XoColor
        • XoColor.__eq__()
        • XoColor.__hash__()
        • XoColor.__init__()
        • XoColor.__ne__()
        • XoColor.__repr__()
        • XoColor.__str__()
        • XoColor.from_string()
        • XoColor.get_fill_color()
        • XoColor.get_random_color()
        • XoColor.get_stroke_color()
        • XoColor.to_rgba_tuple()
        • XoColor.to_string()
      • Icon
        • Icon.__init__()
        • Icon.do_measure()
        • Icon.do_snapshot()
        • Icon.get_alpha()
        • Icon.get_badge_name()
        • Icon.get_badge_size()
        • Icon.get_file_name()
        • Icon.get_fill_color()
        • Icon.get_gtk_image()
        • Icon.get_icon_name()
        • Icon.get_pixbuf()
        • Icon.get_pixel_size()
        • Icon.get_scale()
        • Icon.get_stroke_color()
        • Icon.get_xo_color()
        • Icon.set_alpha()
        • Icon.set_badge_name()
        • Icon.set_file_name()
        • Icon.set_fill_color()
        • Icon.set_icon_name()
        • Icon.set_pixbuf()
        • Icon.set_pixel_size()
        • Icon.set_scale()
        • Icon.set_stroke_color()
        • Icon.set_xo_color()
      • EventIcon
        • EventIcon.__init__()
        • EventIcon.get_background_color()
        • EventIcon.get_cache()
        • EventIcon.set_background_color()
        • EventIcon.set_cache()
      • CanvasIcon
        • CanvasIcon.__init__()
        • CanvasIcon.do_snapshot()
      • CellRendererIcon
        • CellRendererIcon.__init__()
        • CellRendererIcon.get_surface()
        • CellRendererIcon.set_file_name()
        • CellRendererIcon.set_fill_color()
        • CellRendererIcon.set_icon_name()
        • CellRendererIcon.set_size()
        • CellRendererIcon.set_stroke_color()
        • CellRendererIcon.set_xo_color()
      • get_icon_file_name()
      • get_surface()
      • get_icon_state()

Data & Storage

  • sugar.datastore package
    • Submodules
    • sugar.datastore.datastore module
      • DSMetadata
        • DSMetadata.__init__()
        • DSMetadata.has_key()
        • DSMetadata.keys()
        • DSMetadata.get_dictionary()
        • DSMetadata.copy()
        • DSMetadata.get()
        • DSMetadata.update()
      • DSObject
        • DSObject.__init__()
        • DSObject.get_object_id()
        • DSObject.set_object_id()
        • DSObject.object_id
        • DSObject.get_metadata()
        • DSObject.set_metadata()
        • DSObject.metadata
        • DSObject.get_file_path()
        • DSObject.set_file_path()
        • DSObject.file_path
        • DSObject.destroy()
        • DSObject.copy()
      • RawObject
        • RawObject.__init__()
        • RawObject.get_metadata()
        • RawObject.metadata
        • RawObject.get_file_path()
        • RawObject.file_path
        • RawObject.destroy()
      • get()
      • create()
      • write()
      • delete()
      • find()
      • copy()
      • get_unique_values()
    • Module contents

Bundle Management

  • sugar.bundle package
    • Submodules
    • sugar.bundle.activitybundle module
      • ActivityBundle
        • ActivityBundle.MIME_TYPE
        • ActivityBundle.__init__()
        • ActivityBundle.get_locale_path()
        • ActivityBundle.get_icons_path()
        • ActivityBundle.get_name()
        • ActivityBundle.get_bundle_id()
        • ActivityBundle.get_icon()
        • ActivityBundle.get_icon_filename()
        • ActivityBundle.get_activity_version()
        • ActivityBundle.get_command()
        • ActivityBundle.get_mime_types()
        • ActivityBundle.get_tags()
        • ActivityBundle.get_summary()
        • ActivityBundle.get_description()
        • ActivityBundle.get_single_instance()
        • ActivityBundle.get_max_participants()
        • ActivityBundle.get_show_launcher()
        • ActivityBundle.install()
        • ActivityBundle.install_mime_type()
        • ActivityBundle.uninstall()
        • ActivityBundle.is_user_activity()
      • get_bundle_instance()
    • sugar.bundle.bundle module
      • AlreadyInstalledException
      • NotInstalledException
      • InvalidPathException
      • ZipExtractException
      • RegistrationException
      • MalformedBundleException
      • Bundle
        • Bundle.__init__()
        • Bundle.get_file()
        • Bundle.is_file()
        • Bundle.is_dir()
        • Bundle.get_path()
        • Bundle.get_installation_time()
        • Bundle.get_show_launcher()
    • sugar.bundle.bundleversion module
      • VERSION_RE
      • InvalidVersionError
      • NormalizedVersion
        • NormalizedVersion.parts
        • NormalizedVersion.__init__()
    • sugar.bundle.contentbundle module
      • ContentBundle
        • ContentBundle.MIME_TYPE
        • ContentBundle.__init__()
        • ContentBundle.get_name()
        • ContentBundle.get_library_version()
        • ContentBundle.get_locale()
        • ContentBundle.get_activity_start()
        • ContentBundle.get_icon()
        • ContentBundle.get_start_uri()
        • ContentBundle.get_bundle_id()
        • ContentBundle.get_activity_version()
        • ContentBundle.get_tags()
        • ContentBundle.install()
        • ContentBundle.uninstall()
        • ContentBundle.is_user_activity()
    • sugar.bundle.helpers module
      • bundle_from_archive()
      • bundle_from_dir()
    • Module contents

Collaboration

  • sugar.presence package
    • Submodules
    • sugar.presence.activity module
      • Activity
        • Activity.__init__()
        • Activity.object_path()
        • Activity.do_get_property()
        • Activity.do_set_property()
        • Activity.set_private()
        • Activity.get_joined_buddies()
        • Activity.get_buddy_by_handle()
        • Activity.invite()
        • Activity.set_up_tubes()
        • Activity.join()
        • Activity.share()
        • Activity.get_channels()
        • Activity.leave()
    • sugar.presence.buddy module
      • BaseBuddy
        • BaseBuddy.__init__()
        • BaseBuddy.get_key()
        • BaseBuddy.set_key()
        • BaseBuddy.get_nick()
        • BaseBuddy.set_nick()
        • BaseBuddy.get_color()
        • BaseBuddy.set_color()
        • BaseBuddy.get_current_activity()
        • BaseBuddy.get_owner()
        • BaseBuddy.set_owner()
        • BaseBuddy.get_ip4_address()
        • BaseBuddy.set_ip4_address()
        • BaseBuddy.get_tags()
        • BaseBuddy.set_tags()
        • BaseBuddy.object_path()
      • Buddy
        • Buddy.__init__()
        • Buddy.do_get_property()
      • Owner
        • Owner.__init__()
    • sugar.presence.connectionmanager module
      • Connection
        • Connection.__init__()
      • ConnectionManager
        • ConnectionManager.__init__()
        • ConnectionManager.get_preferred_connection()
        • ConnectionManager.get_connection()
        • ConnectionManager.get_connections_per_account()
        • ConnectionManager.get_account_for_connection()
      • get_connection_manager()
    • sugar.presence.presenceservice module
      • PresenceService
        • PresenceService.__init__()
        • PresenceService.get_activity()
        • PresenceService.get_activity_by_handle()
        • PresenceService.get_buddy()
        • PresenceService.get_buddy_by_telepathy_handle()
        • PresenceService.get_owner()
        • PresenceService.share_activity()
        • PresenceService.get_preferred_connection()
        • PresenceService.get()
        • PresenceService.get_activities()
        • PresenceService.get_activities_async()
        • PresenceService.get_buddies()
        • PresenceService.get_buddies_async()
      • get_instance()
    • sugar.presence.sugartubeconn module
      • SugarTubeConnection
        • SugarTubeConnection.get_buddy()
    • sugar.presence.tubeconn module
      • TubeConnection
        • TubeConnection.close()
        • TubeConnection.watch_participants()
    • Module contents

Event System

  • sugar.dispatch package
    • Submodules
    • sugar.dispatch.dispatcher module
      • Signal
        • Signal.__init__()
        • Signal.connect()
        • Signal.disconnect()
        • Signal.send()
        • Signal.send_robust()
      • im_self()
      • im_func()
    • sugar.dispatch.saferef module
      • safeRef()
      • BoundMethodWeakref
        • BoundMethodWeakref.__new__()
        • BoundMethodWeakref.__init__()
        • BoundMethodWeakref.calculateKey()
        • BoundMethodWeakref.__str__()
        • BoundMethodWeakref.__repr__()
        • BoundMethodWeakref.__bool__()
        • BoundMethodWeakref.__nonzero__()
        • BoundMethodWeakref.__cmp__()
        • BoundMethodWeakref.__call__()
      • BoundNonDescriptorMethodWeakref
        • BoundNonDescriptorMethodWeakref.__init__()
        • BoundNonDescriptorMethodWeakref.__call__()
      • get_bound_method_weakref()
      • im_self()
      • im_func()
    • Module contents

Core Utilities

  • sugar package
    • Subpackages
      • sugar.activity package
        • Submodules
        • sugar.activity.activity module
          • Activity
          • PREVIEW_SIZE
          • Activity
            • Activity.__init__()
            • Activity.add_stop_button()
            • Activity.iconify()
            • Activity.run_main_loop()
            • Activity.get_active()
            • Activity.set_active()
            • Activity.active
            • Activity.get_max_participants()
            • Activity.set_max_participants()
            • Activity.get_id()
            • Activity.get_bundle_id()
            • Activity.get_canvas()
            • Activity.set_canvas()
            • Activity.canvas
            • Activity.get_activity_root()
            • Activity.read_file()
            • Activity.write_file()
            • Activity.notify_user()
            • Activity.get_preview()
            • Activity.save()
            • Activity.copy()
            • Activity.get_shared_activity()
            • Activity.get_shared()
            • Activity.invite()
            • Activity.share()
            • Activity.can_close()
            • Activity.close()
            • Activity.get_metadata()
            • Activity.metadata
            • Activity.handle_view_source()
            • Activity.get_document_path()
            • Activity.busy()
            • Activity.unbusy()
          • SimpleActivity
            • SimpleActivity.__init__()
          • get_bundle_name()
          • get_bundle_path()
          • get_activity_root()
          • show_object_in_journal()
          • launch_bundle()
          • get_bundle()
        • sugar.activity.activityhandle module
          • ActivityHandle
            • ActivityHandle.__init__()
            • ActivityHandle.get_dict()
            • ActivityHandle.create_from_dict()
            • ActivityHandle.__repr__()
        • sugar.activity.widgets module
          • ActivityButton
            • ActivityButton.__init__()
          • ActivityToolbarButton
            • ActivityToolbarButton.__init__()
          • StopButton
            • StopButton.__init__()
          • UndoButton
            • UndoButton.__init__()
          • RedoButton
            • RedoButton.__init__()
          • CopyButton
            • CopyButton.__init__()
          • PasteButton
            • PasteButton.__init__()
          • ShareButton
            • ShareButton.__init__()
          • TitleEntry
            • TitleEntry.__init__()
            • TitleEntry.save_title()
          • DescriptionItem
            • DescriptionItem.__init__()
            • DescriptionItem.set_expanded()
            • DescriptionItem.get_toolbar_box()
            • DescriptionItem.toolbar_box
          • ActivityToolbar
            • ActivityToolbar.__init__()
          • EditToolbar
            • EditToolbar.__init__()
        • Module contents
          • Activity Module
          • Activity
            • Activity.__init__()
            • Activity.add_stop_button()
            • Activity.busy()
            • Activity.can_close()
            • Activity.canvas
            • Activity.close()
            • Activity.copy()
            • Activity.get_active()
            • Activity.get_activity_root()
            • Activity.get_bundle_id()
            • Activity.get_canvas()
            • Activity.get_document_path()
            • Activity.get_id()
            • Activity.get_max_participants()
            • Activity.get_metadata()
            • Activity.get_preview()
            • Activity.get_shared()
            • Activity.get_shared_activity()
            • Activity.handle_view_source()
            • Activity.iconify()
            • Activity.invite()
            • Activity.metadata
            • Activity.notify_user()
            • Activity.read_file()
            • Activity.run_main_loop()
            • Activity.save()
            • Activity.set_active()
            • Activity.set_canvas()
            • Activity.set_max_participants()
            • Activity.share()
            • Activity.unbusy()
            • Activity.write_file()
          • SimpleActivity
            • SimpleActivity.__init__()
      • sugar.bundle package
        • Submodules
        • sugar.bundle.activitybundle module
          • ActivityBundle
            • ActivityBundle.MIME_TYPE
            • ActivityBundle.__init__()
            • ActivityBundle.get_locale_path()
            • ActivityBundle.get_icons_path()
            • ActivityBundle.get_name()
            • ActivityBundle.get_bundle_id()
            • ActivityBundle.get_icon()
            • ActivityBundle.get_icon_filename()
            • ActivityBundle.get_activity_version()
            • ActivityBundle.get_command()
            • ActivityBundle.get_mime_types()
            • ActivityBundle.get_tags()
            • ActivityBundle.get_summary()
            • ActivityBundle.get_description()
            • ActivityBundle.get_single_instance()
            • ActivityBundle.get_max_participants()
            • ActivityBundle.get_show_launcher()
            • ActivityBundle.install()
            • ActivityBundle.install_mime_type()
            • ActivityBundle.uninstall()
            • ActivityBundle.is_user_activity()
          • get_bundle_instance()
        • sugar.bundle.bundle module
          • AlreadyInstalledException
          • NotInstalledException
          • InvalidPathException
          • ZipExtractException
          • RegistrationException
          • MalformedBundleException
          • Bundle
            • Bundle.__init__()
            • Bundle.get_file()
            • Bundle.is_file()
            • Bundle.is_dir()
            • Bundle.get_path()
            • Bundle.get_installation_time()
            • Bundle.get_show_launcher()
        • sugar.bundle.bundleversion module
          • VERSION_RE
          • InvalidVersionError
          • NormalizedVersion
            • NormalizedVersion.parts
            • NormalizedVersion.__init__()
        • sugar.bundle.contentbundle module
          • ContentBundle
            • ContentBundle.MIME_TYPE
            • ContentBundle.__init__()
            • ContentBundle.get_name()
            • ContentBundle.get_library_version()
            • ContentBundle.get_locale()
            • ContentBundle.get_activity_start()
            • ContentBundle.get_icon()
            • ContentBundle.get_start_uri()
            • ContentBundle.get_bundle_id()
            • ContentBundle.get_activity_version()
            • ContentBundle.get_tags()
            • ContentBundle.install()
            • ContentBundle.uninstall()
            • ContentBundle.is_user_activity()
        • sugar.bundle.helpers module
          • bundle_from_archive()
          • bundle_from_dir()
        • Module contents
      • sugar.datastore package
        • Submodules
        • sugar.datastore.datastore module
          • DSMetadata
            • DSMetadata.__init__()
            • DSMetadata.has_key()
            • DSMetadata.keys()
            • DSMetadata.get_dictionary()
            • DSMetadata.copy()
            • DSMetadata.get()
            • DSMetadata.update()
          • DSObject
            • DSObject.__init__()
            • DSObject.get_object_id()
            • DSObject.set_object_id()
            • DSObject.object_id
            • DSObject.get_metadata()
            • DSObject.set_metadata()
            • DSObject.metadata
            • DSObject.get_file_path()
            • DSObject.set_file_path()
            • DSObject.file_path
            • DSObject.destroy()
            • DSObject.copy()
          • RawObject
            • RawObject.__init__()
            • RawObject.get_metadata()
            • RawObject.metadata
            • RawObject.get_file_path()
            • RawObject.file_path
            • RawObject.destroy()
          • get()
          • create()
          • write()
          • delete()
          • find()
          • copy()
          • get_unique_values()
        • Module contents
      • sugar.dispatch package
        • Submodules
        • sugar.dispatch.dispatcher module
          • Signal
            • Signal.__init__()
            • Signal.connect()
            • Signal.disconnect()
            • Signal.send()
            • Signal.send_robust()
          • im_self()
          • im_func()
        • sugar.dispatch.saferef module
          • safeRef()
          • BoundMethodWeakref
            • BoundMethodWeakref.__new__()
            • BoundMethodWeakref.__init__()
            • BoundMethodWeakref.calculateKey()
            • BoundMethodWeakref.__str__()
            • BoundMethodWeakref.__repr__()
            • BoundMethodWeakref.__bool__()
            • BoundMethodWeakref.__nonzero__()
            • BoundMethodWeakref.__cmp__()
            • BoundMethodWeakref.__call__()
          • BoundNonDescriptorMethodWeakref
            • BoundNonDescriptorMethodWeakref.__init__()
            • BoundNonDescriptorMethodWeakref.__call__()
          • get_bound_method_weakref()
          • im_self()
          • im_func()
        • Module contents
      • sugar.graphics package
        • Submodules
        • sugar.graphics.alert module
          • Alert
            • Alert.__init__()
            • Alert.do_set_property()
            • Alert.do_get_property()
            • Alert.add_entry()
            • Alert.add_button()
            • Alert.remove_button()
          • ConfirmationAlert
            • ConfirmationAlert.__init__()
          • ErrorAlert
            • ErrorAlert.__init__()
          • TimeoutAlert
            • TimeoutAlert.__init__()
          • NotifyAlert
            • NotifyAlert.__init__()
        • sugar.graphics.animator module
          • Animator
          • Animator
            • Animator.__init__()
            • Animator.add()
            • Animator.remove_all()
            • Animator.start()
            • Animator.stop()
          • Animation
            • Animation.__init__()
            • Animation.do_frame()
            • Animation.next_frame()
            • Animation.do_stop()
          • FadeAnimation
            • FadeAnimation.__init__()
            • FadeAnimation.next_frame()
          • ScaleAnimation
            • ScaleAnimation.__init__()
            • ScaleAnimation.next_frame()
          • MoveAnimation
            • MoveAnimation.__init__()
            • MoveAnimation.next_frame()
          • ColorAnimation
            • ColorAnimation.__init__()
            • ColorAnimation.next_frame()
        • sugar.graphics.icon module
          • Icons - GTK4
          • Icon
            • Icon.__init__()
            • Icon.do_snapshot()
            • Icon.do_measure()
            • Icon.get_icon_name()
            • Icon.set_icon_name()
            • Icon.get_file_name()
            • Icon.set_file_name()
            • Icon.get_pixel_size()
            • Icon.set_pixel_size()
            • Icon.get_fill_color()
            • Icon.set_fill_color()
            • Icon.get_stroke_color()
            • Icon.set_stroke_color()
            • Icon.get_xo_color()
            • Icon.set_xo_color()
            • Icon.get_badge_name()
            • Icon.set_badge_name()
            • Icon.get_alpha()
            • Icon.set_alpha()
            • Icon.get_scale()
            • Icon.set_scale()
            • Icon.get_badge_size()
            • Icon.get_pixbuf()
            • Icon.set_pixbuf()
            • Icon.get_gtk_image()
          • EventIcon
            • EventIcon.__init__()
            • EventIcon.get_background_color()
            • EventIcon.set_background_color()
            • EventIcon.get_cache()
            • EventIcon.set_cache()
          • CanvasIcon
            • CanvasIcon.__init__()
            • CanvasIcon.do_snapshot()
          • CellRendererIcon
            • CellRendererIcon.__init__()
            • CellRendererIcon.set_icon_name()
            • CellRendererIcon.set_file_name()
            • CellRendererIcon.set_xo_color()
            • CellRendererIcon.set_fill_color()
            • CellRendererIcon.set_stroke_color()
            • CellRendererIcon.set_size()
            • CellRendererIcon.get_surface()
          • get_icon_file_name()
          • get_icon_state()
          • get_surface()
        • sugar.graphics.menuitem module
          • MenuItem
          • MenuItem
            • MenuItem.__init__()
            • MenuItem.set_accelerator()
            • MenuItem.get_accelerator()
            • MenuItem.set_text()
            • MenuItem.get_text()
          • MenuSeparator
            • MenuSeparator.__init__()
        • sugar.graphics.objectchooser module
          • get_preview_pixbuf()
          • ObjectChooser
            • ObjectChooser.__init__()
            • ObjectChooser.run()
            • ObjectChooser.get_selected_object()
            • ObjectChooser.destroy()
        • sugar.graphics.palette module
          • Palette
            • Palette.__init__()
            • Palette.get_full_size_request()
            • Palette.popup()
            • Palette.popdown()
            • Palette.on_enter()
            • Palette.set_primary_text()
            • Palette.get_primary_text()
            • Palette.set_secondary_text()
            • Palette.get_secondary_text()
            • Palette.set_icon()
            • Palette.get_icon()
            • Palette.set_icon_visible()
            • Palette.get_icon_visible()
            • Palette.set_content()
            • Palette.get_label_width()
            • Palette.get_menu()
          • PaletteActionBar
            • PaletteActionBar.__init__()
            • PaletteActionBar.add_action()
        • sugar.graphics.palettegroup module
          • get_group()
          • popdown_all()
          • Group
            • Group.__init__()
            • Group.is_up()
            • Group.get_state()
            • Group.add()
            • Group.remove()
            • Group.popdown()
        • sugar.graphics.palettemenu module
          • PaletteMenu
          • PaletteMenuBox
            • PaletteMenuBox.__init__()
            • PaletteMenuBox.append_item()
          • PaletteMenuItemSeparator
            • PaletteMenuItemSeparator.__init__()
          • PaletteMenuItem
            • PaletteMenuItem.__init__()
            • PaletteMenuItem.set_label()
            • PaletteMenuItem.get_label()
            • PaletteMenuItem.set_image()
            • PaletteMenuItem.set_accelerator()
            • PaletteMenuItem.set_sensitive()
          • create_menu_item()
          • create_separator()
          • create_submenu_item()
          • PaletteMenuGroup
            • PaletteMenuGroup.__init__()
            • PaletteMenuGroup.add_item()
            • PaletteMenuGroup.set_sensitive()
            • PaletteMenuGroup.set_visible()
          • PaletteMenuBuilder
            • PaletteMenuBuilder.__init__()
            • PaletteMenuBuilder.add_item()
            • PaletteMenuBuilder.add_separator()
            • PaletteMenuBuilder.get_menu_box()
            • PaletteMenuBuilder.get_group()
        • sugar.graphics.palettewindow module
          • MouseSpeedDetector
            • MouseSpeedDetector.__init__()
            • MouseSpeedDetector.start()
            • MouseSpeedDetector.stop()
          • PaletteWindow
            • PaletteWindow.__init__()
            • PaletteWindow.destroy()
            • PaletteWindow.set_invoker()
            • PaletteWindow.get_invoker()
            • PaletteWindow.set_content()
            • PaletteWindow.is_up()
            • PaletteWindow.set_group_id()
            • PaletteWindow.get_group_id()
            • PaletteWindow.update_position()
            • PaletteWindow.get_full_size_request()
            • PaletteWindow.popup()
            • PaletteWindow.popdown()
            • PaletteWindow.on_invoker_enter()
            • PaletteWindow.on_invoker_leave()
            • PaletteWindow.on_enter()
            • PaletteWindow.on_leave()
            • PaletteWindow.get_rect()
          • Invoker
            • Invoker.ANCHORED
            • Invoker.AT_CURSOR
            • Invoker.BOTTOM
            • Invoker.RIGHT
            • Invoker.TOP
            • Invoker.LEFT
            • Invoker.__init__()
            • Invoker.attach()
            • Invoker.detach()
            • Invoker.get_position_for_alignment()
            • Invoker.get_position()
            • Invoker.get_alignment()
            • Invoker.has_rectangle_gap()
            • Invoker.draw_rectangle()
            • Invoker.notify_popup()
            • Invoker.notify_popdown()
            • Invoker.notify_mouse_enter()
            • Invoker.notify_mouse_leave()
            • Invoker.notify_right_click()
            • Invoker.notify_toggle_state()
            • Invoker.get_palette()
            • Invoker.set_palette()
            • Invoker.get_cache_palette()
            • Invoker.set_cache_palette()
            • Invoker.get_toggle_palette()
            • Invoker.set_toggle_palette()
            • Invoker.get_lock_palette()
            • Invoker.set_lock_palette()
            • Invoker.primary_text_clicked()
            • Invoker.get_rect()
            • Invoker.get_toplevel()
          • WidgetInvoker
            • WidgetInvoker.__init__()
            • WidgetInvoker.attach_widget()
            • WidgetInvoker.detach()
            • WidgetInvoker.get_rect()
            • WidgetInvoker.has_rectangle_gap()
            • WidgetInvoker.draw_rectangle()
            • WidgetInvoker.get_widget()
            • WidgetInvoker.set_widget()
            • WidgetInvoker.get_toplevel()
            • WidgetInvoker.notify_popup()
            • WidgetInvoker.notify_popdown()
          • CursorInvoker
            • CursorInvoker.__init__()
            • CursorInvoker.attach()
            • CursorInvoker.detach()
            • CursorInvoker.get_rect()
            • CursorInvoker.get_toplevel()
          • ToolInvoker
            • ToolInvoker.__init__()
            • ToolInvoker.attach_tool()
            • ToolInvoker.primary_text_clicked()
            • ToolInvoker.notify_popup()
            • ToolInvoker.notify_popdown()
          • TreeViewInvoker
            • TreeViewInvoker.__init__()
            • TreeViewInvoker.attach_treeview()
            • TreeViewInvoker.detach()
            • TreeViewInvoker.get_rect()
            • TreeViewInvoker.get_toplevel()
            • TreeViewInvoker.notify_popdown()
        • sugar.graphics.radiopalette module
          • RadioPalette
          • RadioMenuButton
            • RadioMenuButton.__init__()
            • RadioMenuButton.get_selected_button()
            • RadioMenuButton.set_selected_button()
          • RadioToolsButton
            • RadioToolsButton.__init__()
            • RadioToolsButton.do_clicked()
          • RadioPalette
            • RadioPalette.__init__()
            • RadioPalette.append()
            • RadioPalette.update_button()
            • RadioPalette.popdown()
            • RadioPalette.popup()
            • RadioPalette.get_buttons()
            • RadioPalette.get_selected_button()
        • sugar.graphics.radiotoolbutton module
          • RadioToolButton
            • RadioToolButton.__init__()
            • RadioToolButton.get_group()
            • RadioToolButton.set_group()
            • RadioToolButton.get_active()
            • RadioToolButton.set_active()
        • sugar.graphics.style module
          • Style
          • Font
            • Font.__init__()
            • Font.__str__()
            • Font.get_pango_desc()
            • Font.get_css_string()
          • Color
            • Color.__init__()
            • Color.get_rgba()
            • Color.get_int()
            • Color.get_gdk_rgba()
            • Color.get_gdk_color()
            • Color.get_html()
            • Color.get_css_rgba()
            • Color.get_svg()
            • Color.with_alpha()
          • zoom()
          • apply_css_to_widget()
          • ZOOM_FACTOR
          • DEFAULT_SPACING
          • DEFAULT_PADDING
          • GRID_CELL_SIZE
          • LINE_WIDTH
          • STANDARD_ICON_SIZE
          • SMALL_ICON_SIZE
          • MEDIUM_ICON_SIZE
          • LARGE_ICON_SIZE
          • XLARGE_ICON_SIZE
          • FONT_SIZE
          • FONT_FACE
          • FONT_NORMAL
          • FONT_BOLD
          • FONT_NORMAL_H
          • FONT_BOLD_H
          • FONT_ITALIC
          • COLOR_BLACK
          • COLOR_WHITE
          • COLOR_TRANSPARENT
          • COLOR_PANEL_GREY
          • COLOR_SELECTION_GREY
          • COLOR_TOOLBAR_GREY
          • COLOR_BUTTON_GREY
          • COLOR_INACTIVE_FILL
          • COLOR_INACTIVE_STROKE
          • COLOR_TEXT_FIELD_GREY
          • COLOR_HIGHLIGHT
          • COLOR_PRIMARY
          • COLOR_SUCCESS
          • COLOR_WARNING
          • COLOR_ERROR
          • PALETTE_CURSOR_DISTANCE
          • TOOLBAR_ARROW_SIZE
          • MENU_WIDTH_CHARS
          • BORDER_RADIUS
          • SHADOW_BLUR
          • TRANSITION_DURATION
        • sugar.graphics.toolbarbox module
          • ToolbarBox
          • ToolbarButton
            • ToolbarButton.__init__()
            • ToolbarButton.get_toolbar_box()
            • ToolbarButton.toolbar_box
            • ToolbarButton.get_page()
            • ToolbarButton.set_page()
            • ToolbarButton.is_in_palette()
            • ToolbarButton.is_expanded()
            • ToolbarButton.popdown()
            • ToolbarButton.set_expanded()
            • ToolbarButton.do_snapshot()
          • ToolbarBox
            • ToolbarBox.__init__()
            • ToolbarBox.get_toolbar()
            • ToolbarBox.toolbar
            • ToolbarBox.get_expanded_button()
            • ToolbarBox.set_expanded_button()
            • ToolbarBox.expanded_button
            • ToolbarBox.get_padding()
            • ToolbarBox.set_padding()
        • sugar.graphics.toolbox module
          • Toolbox
          • Toolbox
            • Toolbox.__init__()
            • Toolbox.add_toolbar()
            • Toolbox.remove_toolbar()
            • Toolbox.set_current_toolbar()
            • Toolbox.get_current_toolbar()
            • Toolbox.get_toolbar_count()
            • Toolbox.get_toolbar_at()
            • Toolbox.set_toolbar_label()
            • Toolbox.get_toolbar_label()
            • Toolbox.current_toolbar
        • sugar.graphics.combobox module
          • ComboBox
            • ComboBox.__init__()
            • ComboBox.get_value()
            • ComboBox.append_item()
            • ComboBox.append_separator()
            • ComboBox.get_active_item()
            • ComboBox.remove_all()
        • sugar.graphics.toolcombobox module
          • ToolComboBox
            • ToolComboBox.__init__()
            • ToolComboBox.do_set_property()
            • ToolComboBox.set_label_text()
            • ToolComboBox.get_label_text()
        • sugar.graphics.toggletoolbutton module
          • ToggleToolButton
            • ToggleToolButton.__init__()
            • ToggleToolButton.set_icon_name()
            • ToggleToolButton.get_icon_name()
            • ToggleToolButton.create_palette()
            • ToggleToolButton.get_palette()
            • ToggleToolButton.set_palette()
            • ToggleToolButton.get_palette_invoker()
            • ToggleToolButton.set_palette_invoker()
            • ToggleToolButton.set_tooltip()
            • ToggleToolButton.set_accelerator()
            • ToggleToolButton.get_accelerator()
            • ToggleToolButton.do_snapshot()
            • ToggleToolButton.do_clicked()
        • sugar.graphics.toolbutton module
          • ToolButton
          • setup_accelerator()
          • ToolButton
            • ToolButton.__init__()
            • ToolButton.set_tooltip()
            • ToolButton.get_tooltip()
            • ToolButton.get_hide_tooltip_on_click()
            • ToolButton.set_hide_tooltip_on_click()
            • ToolButton.set_accelerator()
            • ToolButton.get_accelerator()
            • ToolButton.set_icon_name()
            • ToolButton.get_icon_name()
            • ToolButton.set_icon_widget()
            • ToolButton.get_icon_widget()
            • ToolButton.set_label()
            • ToolButton.get_label()
            • ToolButton.create_palette()
            • ToolButton.get_palette()
            • ToolButton.set_palette()
            • ToolButton.get_palette_invoker()
            • ToolButton.set_palette_invoker()
            • ToolButton.do_snapshot()
            • ToolButton.set_active()
            • ToolButton.get_active()
        • sugar.graphics.window module
          • Window - GTK4 Port
          • UnfullscreenButton
            • UnfullscreenButton.__init__()
            • UnfullscreenButton.connect_button_clicked()
          • Window
            • Window.__init__()
            • Window.reveal()
            • Window.is_fullscreen()
            • Window.fullscreen()
            • Window.unfullscreen()
            • Window.set_canvas()
            • Window.get_canvas()
            • Window.set_toolbar_box()
            • Window.get_toolbar_box()
            • Window.set_tray()
            • Window.add_alert()
            • Window.remove_alert()
            • Window.set_enable_fullscreen_mode()
            • Window.get_enable_fullscreen_mode()
            • Window.canvas
            • Window.toolbar_box
        • sugar.graphics.xocolor module
          • XoColor - GTK4 Port
          • XoColor
            • XoColor.__init__()
            • XoColor.__eq__()
            • XoColor.__ne__()
            • XoColor.__hash__()
            • XoColor.__str__()
            • XoColor.__repr__()
            • XoColor.get_stroke_color()
            • XoColor.get_fill_color()
            • XoColor.to_string()
            • XoColor.from_string()
            • XoColor.get_random_color()
            • XoColor.to_rgba_tuple()
        • Module contents
          • Graphics Module
          • XoColor
            • XoColor.__eq__()
            • XoColor.__hash__()
            • XoColor.__init__()
            • XoColor.__ne__()
            • XoColor.__repr__()
            • XoColor.__str__()
            • XoColor.from_string()
            • XoColor.get_fill_color()
            • XoColor.get_random_color()
            • XoColor.get_stroke_color()
            • XoColor.to_rgba_tuple()
            • XoColor.to_string()
          • Icon
            • Icon.__init__()
            • Icon.do_measure()
            • Icon.do_snapshot()
            • Icon.get_alpha()
            • Icon.get_badge_name()
            • Icon.get_badge_size()
            • Icon.get_file_name()
            • Icon.get_fill_color()
            • Icon.get_gtk_image()
            • Icon.get_icon_name()
            • Icon.get_pixbuf()
            • Icon.get_pixel_size()
            • Icon.get_scale()
            • Icon.get_stroke_color()
            • Icon.get_xo_color()
            • Icon.set_alpha()
            • Icon.set_badge_name()
            • Icon.set_file_name()
            • Icon.set_fill_color()
            • Icon.set_icon_name()
            • Icon.set_pixbuf()
            • Icon.set_pixel_size()
            • Icon.set_scale()
            • Icon.set_stroke_color()
            • Icon.set_xo_color()
          • EventIcon
            • EventIcon.__init__()
            • EventIcon.get_background_color()
            • EventIcon.get_cache()
            • EventIcon.set_background_color()
            • EventIcon.set_cache()
          • CanvasIcon
            • CanvasIcon.__init__()
            • CanvasIcon.do_snapshot()
          • CellRendererIcon
            • CellRendererIcon.__init__()
            • CellRendererIcon.get_surface()
            • CellRendererIcon.set_file_name()
            • CellRendererIcon.set_fill_color()
            • CellRendererIcon.set_icon_name()
            • CellRendererIcon.set_size()
            • CellRendererIcon.set_stroke_color()
            • CellRendererIcon.set_xo_color()
          • get_icon_file_name()
          • get_surface()
          • get_icon_state()
      • sugar.presence package
        • Submodules
        • sugar.presence.activity module
          • Activity
            • Activity.__init__()
            • Activity.object_path()
            • Activity.do_get_property()
            • Activity.do_set_property()
            • Activity.set_private()
            • Activity.get_joined_buddies()
            • Activity.get_buddy_by_handle()
            • Activity.invite()
            • Activity.set_up_tubes()
            • Activity.join()
            • Activity.share()
            • Activity.get_channels()
            • Activity.leave()
        • sugar.presence.buddy module
          • BaseBuddy
            • BaseBuddy.__init__()
            • BaseBuddy.get_key()
            • BaseBuddy.set_key()
            • BaseBuddy.get_nick()
            • BaseBuddy.set_nick()
            • BaseBuddy.get_color()
            • BaseBuddy.set_color()
            • BaseBuddy.get_current_activity()
            • BaseBuddy.get_owner()
            • BaseBuddy.set_owner()
            • BaseBuddy.get_ip4_address()
            • BaseBuddy.set_ip4_address()
            • BaseBuddy.get_tags()
            • BaseBuddy.set_tags()
            • BaseBuddy.object_path()
          • Buddy
            • Buddy.__init__()
            • Buddy.do_get_property()
          • Owner
            • Owner.__init__()
        • sugar.presence.connectionmanager module
          • Connection
            • Connection.__init__()
          • ConnectionManager
            • ConnectionManager.__init__()
            • ConnectionManager.get_preferred_connection()
            • ConnectionManager.get_connection()
            • ConnectionManager.get_connections_per_account()
            • ConnectionManager.get_account_for_connection()
          • get_connection_manager()
        • sugar.presence.presenceservice module
          • PresenceService
            • PresenceService.__init__()
            • PresenceService.get_activity()
            • PresenceService.get_activity_by_handle()
            • PresenceService.get_buddy()
            • PresenceService.get_buddy_by_telepathy_handle()
            • PresenceService.get_owner()
            • PresenceService.share_activity()
            • PresenceService.get_preferred_connection()
            • PresenceService.get()
            • PresenceService.get_activities()
            • PresenceService.get_activities_async()
            • PresenceService.get_buddies()
            • PresenceService.get_buddies_async()
          • get_instance()
        • sugar.presence.sugartubeconn module
          • SugarTubeConnection
            • SugarTubeConnection.get_buddy()
        • sugar.presence.tubeconn module
          • TubeConnection
            • TubeConnection.close()
            • TubeConnection.watch_participants()
        • Module contents
    • Submodules
    • sugar.env module
      • is_emulator()
      • get_profile_path()
      • get_logs_path()
      • get_user_activities_path()
      • get_user_library_path()
    • sugar.logger module
      • get_logs_dir()
      • set_level()
      • cleanup()
      • start()
      • TraceRepr
        • TraceRepr.repr1()
        • TraceRepr.repr_int()
        • TraceRepr.repr_bool()
      • trace()
    • sugar.mime module
      • ObjectType
        • ObjectType.__init__()
      • get_generic_type()
      • get_all_generic_types()
      • get_for_file()
      • get_from_file_name()
      • get_mime_icon()
      • get_mime_description()
      • get_mime_parents()
      • get_primary_extension()
      • get_extensions_by_mimetype()
      • choose_most_significant()
      • split_uri_list()
    • sugar.network module
      • get_authinfo()
      • GlibTCPServer
        • GlibTCPServer.allow_reuse_address
        • GlibTCPServer.request_queue_size
        • GlibTCPServer.__init__()
        • GlibTCPServer.close_request()
        • GlibTCPServer.shutdown_request()
      • ChunkedGlibHTTPRequestHandler
        • ChunkedGlibHTTPRequestHandler.CHUNK_SIZE
        • ChunkedGlibHTTPRequestHandler.__init__()
        • ChunkedGlibHTTPRequestHandler.log_request()
        • ChunkedGlibHTTPRequestHandler.do_GET()
        • ChunkedGlibHTTPRequestHandler.finish()
        • ChunkedGlibHTTPRequestHandler.send_head()
      • GlibURLDownloader
        • GlibURLDownloader.CHUNK_SIZE
        • GlibURLDownloader.__init__()
        • GlibURLDownloader.start()
        • GlibURLDownloader.cancel()
        • GlibURLDownloader.cleanup()
    • sugar.profile module
      • Profile
        • Profile.__init__()
        • Profile.pubkey
        • Profile.privkey_hash
        • Profile.is_valid()
        • Profile.convert_profile()
      • get_profile()
      • get_nick_name()
      • get_color()
      • get_pubkey()
      • get_save_as()
    • sugar.util module
      • printable_hash()
      • sha_data()
      • unique_id()
      • is_hex()
      • validate_activity_id()
      • set_proc_title()
      • Node
        • Node.__init__()
        • Node.prev
        • Node.me
        • Node.next
      • LRU
        • LRU.__init__()
        • LRU.iteritems()
        • LRU.iterkeys()
        • LRU.itervalues()
        • LRU.keys()
      • timestamp_to_elapsed_string()
      • TempFilePath
      • format_size()
    • Module contents
      • Sugar Toolkit GTK4 Python
      • Activity
        • Activity.__init__()
        • Activity.add_stop_button()
        • Activity.busy()
        • Activity.can_close()
        • Activity.canvas
        • Activity.close()
        • Activity.copy()
        • Activity.get_active()
        • Activity.get_activity_root()
        • Activity.get_bundle_id()
        • Activity.get_canvas()
        • Activity.get_document_path()
        • Activity.get_id()
        • Activity.get_max_participants()
        • Activity.get_metadata()
        • Activity.get_preview()
        • Activity.get_shared()
        • Activity.get_shared_activity()
        • Activity.handle_view_source()
        • Activity.iconify()
        • Activity.invite()
        • Activity.metadata
        • Activity.notify_user()
        • Activity.read_file()
        • Activity.run_main_loop()
        • Activity.save()
        • Activity.set_active()
        • Activity.set_canvas()
        • Activity.set_max_participants()
        • Activity.share()
        • Activity.unbusy()
        • Activity.write_file()
      • SimpleActivity
        • SimpleActivity.__init__()
      • XoColor
        • XoColor.__eq__()
        • XoColor.__hash__()
        • XoColor.__init__()
        • XoColor.__ne__()
        • XoColor.__repr__()
        • XoColor.__str__()
        • XoColor.from_string()
        • XoColor.get_fill_color()
        • XoColor.get_random_color()
        • XoColor.get_stroke_color()
        • XoColor.to_rgba_tuple()
        • XoColor.to_string()
      • Icon
        • Icon.__init__()
        • Icon.do_measure()
        • Icon.do_snapshot()
        • Icon.get_alpha()
        • Icon.get_badge_name()
        • Icon.get_badge_size()
        • Icon.get_file_name()
        • Icon.get_fill_color()
        • Icon.get_gtk_image()
        • Icon.get_icon_name()
        • Icon.get_pixbuf()
        • Icon.get_pixel_size()
        • Icon.get_scale()
        • Icon.get_stroke_color()
        • Icon.get_xo_color()
        • Icon.set_alpha()
        • Icon.set_badge_name()
        • Icon.set_file_name()
        • Icon.set_fill_color()
        • Icon.set_icon_name()
        • Icon.set_pixbuf()
        • Icon.set_pixel_size()
        • Icon.set_scale()
        • Icon.set_stroke_color()
        • Icon.set_xo_color()
      • EventIcon
        • EventIcon.__init__()
        • EventIcon.get_background_color()
        • EventIcon.get_cache()
        • EventIcon.set_background_color()
        • EventIcon.set_cache()
      • MenuItem
        • MenuItem.__init__()
        • MenuItem.get_accelerator()
        • MenuItem.get_text()
        • MenuItem.set_accelerator()
        • MenuItem.set_text()
      • MenuSeparator
        • MenuSeparator.__init__()

Examples:

  • Examples
    • Basic Activity
    • Creative Studio Activity Example
    • Hello_World_Dodge Example
    • UI Components
      • Alert Example
      • Icon Example
      • Palette Example
      • Toolbar Examples
    • Other Examples
Sugar-Toolkit-GTK4
  • Search


© Copyright 2025, MostlyK.

Built with Sphinx using a theme provided by Read the Docs.