Пример #1
0
	def delete(self,widget):
		select=self.Tree.get_selection()
		filepath=resources.on_tree_selection_changed(select)
		(modelo,filas)=select.get_selected_rows()
		for i in filas:
			val = int(resources.cleanNode(i))
			iterador=modelo.get_iter(i)
		treeiter=self.List.remove(iterador)
		self.xml_parser.delete_by_terms('pista','title',filepath)
		self.xml_parser.update_xml()
Пример #2
0
	def core(self):
	    'every time core is called stop every activity'
		self.stop_state( )
		'gets tree selection'
		select = self.Tree.get_selection(	)
		'clear path'
		fileresources = resources.on_tree_selection_changed( select	)
		try:
			try:
		    	    audiofile =  eyeD3.load(fileresources)
		    	    tag = audiofile.tag
		    except:
		    	    tag =  eyeD3.Tag()
		    	    tag.link(fileresources) 
			audio = MP3	( fileresources )
			duration = audio.info.length
		    fileLen = int(duration/60) + float(int((float(duration/60) - int(duration/60))*60))/100
		except:
Пример #3
0
	def set_row_value(self,col,tag,value):
	    select=self.Tree.get_selection()
		filepath=resources.on_tree_selection_changed(select)
		self.xml_parser.set_value_by_terms(tag,col,filepath,len(self.xml_parser.get_list_of_elements(tag)),value)
Пример #4
0
	def save(self,widget):
		select=self.Tree.get_selection()
		filepath=resources.on_tree_selection_changed(select)
		try: