Gtk.MountOperation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gtk.MountOperation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GtkMountOperation
is an implementation ofGMountOperation
.The functions and objects described here make working with GTK and GIO more convenient.
GtkMountOperation
is needed when mounting volumes: It is an implementation ofGMountOperation
that can be used with GIO functions for mounting volumes such asGio.File.mount_enclosing_volume
(),Gio.File.mount_mountable
(),Gio.Volume.mount
(),Gio.Mount.unmount_with_operation
() and others.When necessary,
GtkMountOperation
shows dialogs to let the user enter passwords, ask questions or show processes blocking unmount.- classmethod new(parent)[source]¶
- Parameters:
parent (
Gtk.Window
orNone
) – transient parent of the window- Returns:
a new
GtkMountOperation
- Return type:
Creates a new
GtkMountOperation
.
- get_display()[source]¶
- Returns:
the display on which windows of self are shown
- Return type:
Gets the display on which windows of the
GtkMountOperation
will be shown.
- get_parent()[source]¶
- Returns:
the transient parent for windows shown by self
- Return type:
Gtk.Window
orNone
Gets the transient parent used by the
GtkMountOperation
.
- set_display(display)[source]¶
- Parameters:
display (
Gdk.Display
) – aGdkDisplay
Sets the display to show windows of the
GtkMountOperation
on.
- set_parent(parent)[source]¶
- Parameters:
parent (
Gtk.Window
orNone
) – transient parent of the window
Sets the transient parent for windows shown by the
GtkMountOperation
.
Property Details¶
- Gtk.MountOperation.props.display¶
- Name:
display
- Type:
- Default Value:
- Flags:
The display where dialogs will be shown.
- Gtk.MountOperation.props.is_showing¶
-
Whether a dialog is currently shown.
- Gtk.MountOperation.props.parent¶
- Name:
parent
- Type:
- Default Value:
- Flags:
The parent window.