## Nemo.LocationWidgetProvider

Nemo.LocationWidgetProvider — Nemo.LocationWidgetProvider Reference

## Synopsis

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

## Description

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

Example 4. Nemo.LocationWidgetProvider Example

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11

    from gi.repository import Nemo, GObject, Gtk

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

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

## Passive Methods

### Nemo.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 Nemo 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.