[gnome-python-desktop] Missing example from git!



commit ce51e0824e50f57f12c20a7cae6948cacb171a85
Author: Gustavo Carneiro <gjc inescporto pt>
Date:   Tue Jul 14 19:31:11 2009 +0100

    Missing example from git!

 examples/braseromedia/drive_selection.py |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/examples/braseromedia/drive_selection.py b/examples/braseromedia/drive_selection.py
new file mode 100644
index 0000000..6ed4ea6
--- /dev/null
+++ b/examples/braseromedia/drive_selection.py
@@ -0,0 +1,26 @@
+import sys
+# load module beneath
+sys.path.append ('..')
+
+import gtk, gobject
+import braseromedia
+
+s = braseromedia.DriveSelection()
+
+def foo ():
+	global s;
+	print s.get_active().get_display_name()
+
+
+s.show()
+
+b = gtk.VBox(False, 0)
+b.show()
+
+w = gtk.Window (gtk.WINDOW_TOPLEVEL)
+w.add (b)
+w.show()
+
+b.add (s)
+gobject.idle_add (foo)
+gtk.main ()



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