From ca0a8f4d6cc24707bc07c3013bff321e2f0c24fd Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 13 Jan 2012 23:18:04 +0100 Subject: initial import from Mate-Extra repo --- examples/location-widget-provider.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/location-widget-provider.py (limited to 'examples/location-widget-provider.py') diff --git a/examples/location-widget-provider.py b/examples/location-widget-provider.py new file mode 100644 index 0000000..0e7504c --- /dev/null +++ b/examples/location-widget-provider.py @@ -0,0 +1,12 @@ +import caja +import gtk + +class LocationProviderExample(caja.LocationWidgetProvider): + def __init__(self): + pass + + def get_widget(self, uri, window): + entry = gtk.Entry() + entry.set_text(uri) + entry.show() + return entry -- cgit v1.2.1