MountOperation

class MountOperation(**properties: Any)

Superclasses: MountOperation, Object

GtkMountOperation is an implementation of GMountOperation.

The functions and objects described here make working with GTK and GIO more convenient.

GtkMountOperation is needed when mounting volumes: It is an implementation of GMountOperation that can be used with GIO functions for mounting volumes such as mount_enclosing_volume(), mount_mountable(), mount(), unmount_with_operation() and others.

When necessary, GtkMountOperation shows dialogs to let the user enter passwords, ask questions or show processes blocking unmount.

Constructors

class MountOperation
classmethod new(parent: Window | None = None) MountOperation

Creates a new GtkMountOperation.

Parameters:

parent – transient parent of the window

Methods

class MountOperation
get_display() Display

Gets the display on which windows of the GtkMountOperation will be shown.

get_parent() Window | None

Gets the transient parent used by the GtkMountOperation.

is_showing() bool

Returns whether the GtkMountOperation is currently displaying a window.

set_display(display: Display) None

Sets the display to show windows of the GtkMountOperation on.

Parameters:

display – a GdkDisplay

set_parent(parent: Window | None = None) None

Sets the transient parent for windows shown by the GtkMountOperation.

Parameters:

parent – transient parent of the window

Properties

class MountOperation
props.display: Display

The display where dialogs will be shown.

props.is_showing: bool

Whether a dialog is currently shown.

props.parent: Window

The parent window.

Fields

class MountOperation
parent_instance
priv