summaryrefslogtreecommitdiff
path: root/examples/location-widget-provider.py
blob: c12301c1d9b536ee7c70f10055c5eed713914e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
from gi.repository import Caja, Gtk, GObject

class LocationProviderExample(GObject.GObject, Caja.LocationWidgetProvider):
    def __init__(self):
        pass
    
    def get_widget(self, uri, window):
        entry = Gtk.Entry()
        entry.set_text(uri)
        entry.show()
        return entry