File: location-widget-provider.py

package info (click to toggle)
nemo-python 6.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: xml: 1,732; ansic: 795; python: 156; makefile: 9
file content (11 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (4)
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