gtk.MountOperationFunctions for working with GIO (new in PyGTK 2.14)Synopsisgtk.MountOperationgio.MountOperationget_parentget_screenis_showingset_parentparentset_screenscreenAncestry+-- gobject.GObject
+-- gio.MountOperation
+-- gtk.MountOperation
gtk.MountOperation Properties
"is-showing"ReadAre we showing a dialog. Default value: False."parent"Read/WriteThe parent window."screen"Read/WriteThe screen where this window will be displayed.
Description
The functions and objects described here make working with GTK+ and GIO more convenient.
gtk.MountOperation
is needed when mounting volumes and
gtk.show_uri()
is a convenient way to launch applications for URIs. Another object that is worth
mentioning in this context is
gtk.gdk.AppLaunchContext,
which provides visual feedback when lauching applications.
Constructorgtk.MountOperationparentNoneparent :transient parent of the window, or
None.Returns :a new
gtk.MountOperation.
This method is available in PyGTK 2.14 and above.
Creates a new gtk.MountOperation.
Methodsgtk.MountOperation.get_parentget_parentReturns :a new
gtk.MountOperation.
This method is available in PyGTK 2.14 and above.
The get_parent() method gets the transient
parent used by the
gtk.MountOperation.
gtk.MountOperation.get_screenget_screenReturns :the screen on which windows of op are shown.
This method is available in PyGTK 2.14 and above.
The get_screen() method gets the screen
on which windows of the
gtk.MountOperation
will be shown.
gtk.MountOperation.is_showingis_showingReturns :True if op is currently displaying a window.
This method is available in PyGTK 2.14 and above.
The is_showing() method returns whetherthe
gtk.MountOperation
is currently displaying a window.
gtk.MountOperation.set_parentset_parentparentparent :transient parent of the window,
or None.This method is available in PyGTK 2.14 and above.
The set_parent() method sets the
transient parent for windows shown by the
gtk.MountOperation.
gtk.MountOperation.set_screenset_screenscreenscreen :a
gtk.gdk.Screen.
This method is available in PyGTK 2.14 and above.
The set_screen() method gets the screen
on which windows of the
gtk.MountOperation
will be shown.