home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / python-gnome2-desktop / examples / nautilusburn / drive_selection.py < prev    next >
Encoding:
Python Source  |  2009-03-14  |  369 b   |  27 lines

  1. import sys
  2. # load module beneath
  3. sys.path.append ('..')
  4. import gtk, gobject
  5. import nautilusburn
  6.  
  7. s = nautilusburn.DriveSelection()
  8.  
  9. def foo ():
  10.     global s;
  11.     print s.get_device()
  12.  
  13.  
  14. s.show()
  15.  
  16. b = gtk.VBox(False, 0)
  17. b.show()
  18.  
  19. w = gtk.Window (gtk.WINDOW_TOPLEVEL)
  20. w.add (b)
  21. w.show()
  22.  
  23. b.add (s)
  24. s.set_property ('show-recorders-only', True)
  25. gobject.idle_add (foo)
  26. gtk.main ()
  27.