Пример #1
0
            title = _("Insert blank disc")
        elif can_rewrite:
            msg = _("Please replace the disc in the drive with a "
                    "rewritable or blank disc.")
                    
            title = _("Reload rewritable or blank disc")
        else:
            msg = _("Please replace the disc in the drive a blank disc.")
            title = _("Reload blank disc")
        return gtkutil.dialog_ok_cancel (title, msg, self.parent) == gtk.RESPONSE_OK


if __name__ == '__main__':
    import sys, gobject
    class MyListener:
        def on_finished (self, evt):
            gtk.main_quit()
    
    def print_progress (oper):
        return True
    w = gtk.Window(gtk.WINDOW_TOPLEVEL)
    w.add (gtk.Label("---"))
    w.show_all()
    d = nautilusburn.get_drives_list (False)[0]
    music_lst = [{'filename': sys.argv[1]}]
    r = RecordMusicList (music_lst, d, d.get_max_speed_write(), 0) #nautilusburn.RECORDER_WRITE_DUMMY_WRITE
    r.listeners.append (MyListener())
    gobject.timeout_add (250, print_progress, r)
    r.start()
    gtk.main()
Пример #2
0
            title = _("Reload rewritable or blank disc")
        else:
            msg = _("Please replace the disc in the drive a blank disc.")
            title = _("Reload blank disc")
        return gtkutil.dialog_ok_cancel(title, msg,
                                        self.parent) == gtk.RESPONSE_OK


if __name__ == '__main__':
    import sys, gobject

    class MyListener:
        def on_finished(self, evt):
            gtk.main_quit()

    def print_progress(oper):
        return True

    w = gtk.Window(gtk.WINDOW_TOPLEVEL)
    w.add(gtk.Label("---"))
    w.show_all()
    d = nautilusburn.get_drives_list(False)[0]
    music_lst = [{'filename': sys.argv[1]}]
    r = RecordMusicList(music_lst, d, d.get_max_speed_write(),
                        0)  #nautilusburn.RECORDER_WRITE_DUMMY_WRITE
    r.listeners.append(MyListener())
    gobject.timeout_add(250, print_progress, r)
    r.start()
    gtk.main()
Пример #3
0
import sys
sys.path.append ('..')
import nautilusburn
import gtk
import gobject

r = nautilusburn.Recorder()
drives = nautilusburn.get_drives_list(True)
d = drives[0]
print r.blank_disc (d, nautilusburn.RECORDER_BLANK_FAST, False)
print "done"
Пример #4
0
	def __update_drives (self):
		self.__drives = {}
		for dev in nautilusburn.get_drives_list (True):
			device = dev.get_device ()
			self.__drives[device] = Recorder (serpentine_object, device)
Пример #5
0
import sys

sys.path.append('..')
import nautilusburn
import gtk
import gobject

r = nautilusburn.Recorder()
drives = nautilusburn.get_drives_list(True)
d = drives[0]
print r.blank_disc(d, nautilusburn.RECORDER_BLANK_FAST, False)
print "done"
Пример #6
0
 def __update_drives(self):
     self.__drives = {}
     for dev in nautilusburn.get_drives_list(True):
         device = dev.get_device()
         self.__drives[device] = Recorder(serpentine_object, device)