[nautilus-python] Added a simple location widget provider example



commit 6e43662df35e5322ce58b265ef29b4df0d0f971f
Author: Adam Plumb <adamplumb gmail com>
Date:   Thu Jan 14 15:43:31 2010 -0500

    Added a simple location widget provider example

 examples/location-widget-provider.py |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/examples/location-widget-provider.py b/examples/location-widget-provider.py
new file mode 100644
index 0000000..d10cb1d
--- /dev/null
+++ b/examples/location-widget-provider.py
@@ -0,0 +1,12 @@
+import nautilus
+import gtk
+
+class LocationProviderExample(nautilus.LocationWidgetProvider):
+    def __init__(self):
+        pass
+    
+    def get_widget(self, uri, window):
+        entry = gtk.Entry()
+        entry.set_text(uri)
+        entry.show()
+        return entry



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]