/usr/share/doc/nemo-python/examples/location-widget-provider.py is in nemo-python 3.6.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | from gi.repository import Nemo, Gtk, GObject
class LocationProviderExample(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
|