manpagez: man pages & more
html files: pygtk
Home | html | info | man
): def get_parent()
def get_screen()
def is_showing()
def set_parent(parent)
def set_screen(screen)
Functions
 
    def gtk.show_uri(screen, uri, timestamp)

Ancestry

+-- 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.

Constructor

    gtk.MountOperation(parent=None)

parent :

transient parent of the window, or None.

Returns :

a new gtk.MountOperation.

Note

This method is available in PyGTK 2.14 and above.

Creates a new gtk.MountOperation.

Methods

gtk.MountOperation.get_parent

    def get_parent()

Returns :

a new gtk.MountOperation.

Note

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_screen

    def get_screen()

Returns :

the screen on which windows of op are shown.

Note

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_showing

    def is_showing()

Returns :

True if op is currently displaying a window.

Note

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_parent

    def set_parent(parent)

parent :

transient parent of the window, or None.

Note

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_screen

    def set_screen(screen)

screen :

a gtk.gdk.Screen.

Note

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.

Functions

gtk.show_uri

    def show_uri(screen, uri, timestamp)

screen :

A gtk.gdk.Screen to show the uri on or None for the default screen.

uri :

the uri to show.

timestamp :

a timestamp to prevent focus stealing.

Note

This function is available in PyGTK 2.14 and above.

The show_uri() function is a convenience function for launching the default application to show the uri. The uri must be of a form understood by GIO. Typical examples are:

file:///home/gnome/pict.jpg
http://www.gnome.org
mailto:me@gnome.org

Ideally the timestamp is taken from the event triggering the gtk.show_uri() call. If timestamp is not known you can take gtk.gdk.CURRENT_TIME.

This function can be used as a replacement for gnome_vfs_url_show() and gnome_url_show().

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.