File: drive_selection.py

package info (click to toggle)
gnome-python-desktop 2.32.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,548 kB
  • sloc: sh: 10,214; xml: 8,851; ansic: 3,428; python: 1,457; makefile: 664
file content (26 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import sys
# load module beneath
sys.path.append ('..')
import gtk, gobject
import nautilusburn

s = nautilusburn.DriveSelection()

def foo ():
	global s;
	print s.get_device()


s.show()

b = gtk.VBox(False, 0)
b.show()

w = gtk.Window (gtk.WINDOW_TOPLEVEL)
w.add (b)
w.show()

b.add (s)
s.set_property ('show-recorders-only', True)
gobject.idle_add (foo)
gtk.main ()