class documentation

class OpenWithMenu(Gtk.Menu): (source)

View In Hierarchy

Sub-class of Gtk.Menu implementing an "Open With..." menu with applications to open a specific file. Also has an item "Customize...", which opens a CustomizeOpenWithDialog and allows the user to add custom commands.
Method __init__ Constructor
Method on_activate Undocumented
Method on_activate_customize Undocumented
Constant CUSTOMIZE Undocumented
Instance Variable file Undocumented
Instance Variable mimetype Undocumented
Instance Variable _window Undocumented
def __init__(self, widget, file, mimetype=None): (source)
Constructor
Parameters
widgetparent widget, needed to pop dialogs correctly
filea File object or URL
mimetypethe mime-type of the application, if already known. Providing this arguments prevents redundant lookups of the type (which is slow).
def on_activate(self, menuitem): (source)

Undocumented

def on_activate_customize(self, o, mimetype): (source)

Undocumented

CUSTOMIZE = (source)

Undocumented

Value
_('Customize...')
file = (source)

Undocumented

mimetype = (source)

Undocumented

_window = (source)

Undocumented