def show_final_time(self): if (self.erase_temp): self.eraser.delete_xml() self.window.hide() self.window.destroy() newtree=devede_other.create_tree(self,"wend_dialog",self.gladefile,False) label=newtree.get_object("elapsed") tiempo2=devede_other.return_time(time.time()-self.tiempo,True) label.set_text(tiempo2) window=newtree.get_object("wend_dialog") burn = newtree.get_object("button11") # only enable button if k3b is available # TODO: support other burners if 127==devede_other.check_program("k3b -v"): burn.set_sensitive(False) burn.connect('clicked', self.burn) window.show() window.run() window.hide() window.destroy() window = None newtree = None gc.collect() (self.main_window_callback)()
def show_final_time(self): if (self.erase_temp): self.eraser.delete_xml() self.window.hide() self.window.destroy() newtree = devede_other.create_tree(self, "wend_dialog", self.gladefile, False) label = newtree.get_object("elapsed") tiempo2 = devede_other.return_time(time.time() - self.tiempo, True) label.set_text(tiempo2) window = newtree.get_object("wend_dialog") burn = newtree.get_object("button11") # only enable button if k3b is available # TODO: support other burners if 127 == devede_other.check_program("k3b -v"): burn.set_sensitive(False) burn.connect('clicked', self.burn) window.show() window.run() window.hide() window.destroy() window = None newtree = None gc.collect() (self.main_window_callback)()
def __init__(self, gladefile, structure, global_vars, callback): if (0 != devede_other.check_program("k3b -v")): self.k3b_available = False else: self.k3b_available = True if (0 != devede_other.check_program("brasero --help")): self.brasero_available = False else: self.brasero_available = True self.gladefile = gladefile self.structure = structure self.global_vars = global_vars self.has_mp3lame = True if (global_vars["disctocreate"] == "divx") and (global_vars["use_ffmpeg"]): if (False == self.check_mp3lame()): return self.tree = devede_other.create_tree(self, "wprogress", self.gladefile) self.window = self.tree.get_object("wprogress") self.partial = self.tree.get_object("progresspartial") self.erase_temp = global_vars["erase_temporary_files"] self.iso_creator = global_vars["iso_creator"] self.queue = [] self.current_action = 0 self.actions = global_vars["number_actions"] self.total = self.tree.get_object("progress_total") self.label = self.tree.get_object("lcreating") self.total.set_fraction(0) self.partial.set_fraction(0) self.partial.set_text("0%") self.label.set_text("") self.start_time = time.time() self.disk_type = global_vars["disctocreate"] self.main_window_callback = callback self.tiempo = time.time()
def __init__(self,gladefile,structure,global_vars,callback): if (0!=devede_other.check_program("k3b -v")): self.k3b_available=False else: self.k3b_available=True if (0!=devede_other.check_program("brasero --help")): self.brasero_available=False else: self.brasero_available=True self.gladefile=gladefile self.structure=structure self.global_vars=global_vars self.has_mp3lame=True if (global_vars["disctocreate"]=="divx") and ((global_vars["encoder_video"]=="ffmpeg") or (global_vars["encoder_video"]=="avconv")): if (False==self.check_mp3lame()): return self.tree=devede_other.create_tree(self,"wprogress",self.gladefile) self.window=self.tree.get_object("wprogress") self.partial=self.tree.get_object("progresspartial") self.erase_temp=global_vars["erase_temporary_files"] self.iso_creator=global_vars["iso_creator"] self.queue=[] self.current_action=0 self.actions=global_vars["number_actions"] self.total=self.tree.get_object("progress_total") self.label=self.tree.get_object("lcreating") self.total.set_fraction(0) self.partial.set_fraction(0) self.partial.set_text("0%") self.label.set_text("") self.start_time=time.time() self.disk_type=global_vars["disctocreate"] self.main_window_callback=callback self.tiempo=time.time()
if font_path[-1]!=os.sep: font_path+=os.sep font_path+="devedesans.ttf" global_vars["font_path"]=font_path print "Entro en fonts" fonts_found=devede_fonts.prepare_devede_font(home,font_path) print "Salgo de fonts" devede_other.load_config(global_vars) # load configuration errors="" # check for installed programs if (sys.platform=="win32") or (sys.platform=="win64"): try: devede_other.check_program(["mplayer.exe", "-v"]) except: errors+="mplayer\n" try: devede_other.check_program(["mencoder.exe", "-msglevel", "help"]) except: errors+="mencoder\n" try: devede_other.check_program(["dvdauthor.exe", "--help"]) except: errors+="dvdauthor\n" try: devede_other.check_program(["vcdimager.exe", "--help"]) except: errors+="vcdimager\n" try:
if font_path[-1] != os.sep: font_path += os.sep font_path += "devedesans.ttf" global_vars["font_path"] = font_path print "Entro en fonts" fonts_found = devede_fonts.prepare_devede_font(home, font_path) print "Salgo de fonts" devede_other.load_config(global_vars) # load configuration errors = "" # check for installed programs if (sys.platform == "win32") or (sys.platform == "win64"): try: devede_other.check_program(["mplayer.exe", "-v"]) except: errors += "mplayer\n" try: devede_other.check_program(["mencoder.exe", "-msglevel", "help"]) except: errors += "mencoder\n" try: devede_other.check_program(["dvdauthor.exe", "--help"]) except: errors += "dvdauthor\n" try: devede_other.check_program(["vcdimager.exe", "--help"]) except: errors += "vcdimager\n" try: