Nautilus.LocationWidgetProvider: nautilus-python Reference Manual

## Nautilus.LocationWidgetProvider Nautilus.LocationWidgetProvider — Nautilus.LocationWidgetProvider Reference |

## Synopsis

     Nautilus.LocationWidgetProvider {
      get_widget(uri,
                 window);
    }

## Description

If subclassed, Nautilus will request a widget to be displayed at the top of the directory listing.

Example 4. Nautilus.LocationWidgetProvider Example

    from gi.repository import Nautilus, GObject, Gtk

    class ColumnExtension(GObject.GObject, Nautilus.LocationWidgetProvider):
        def __init__(self):
            pass

        def get_widget(self, uri, window):
            entry = Gtk.Entry()
            entry.set_text(uri)
            entry.show()
            return entry

## Passive Methods

### Nautilus.LocationWidgetProvider.get_widget

    get_widget(uri,
               window);

`uri` : | the current folder uri
`window` : | the current `gtk.Window` instance
Returns : | a `gtk.Widget` object

This function is called by Nautilus when it wants a location widget from the extension. It is called in the main thread before a directory listing is shown, so it should return quickly.