Ejemplo n.º 1
0
 def CategoryEntry(self,
                   column_id,
                   item_id,
                   name,
                   image_link="",
                   onlyupdates=False,
                   onlyinstalled=False,
                   orderby="",
                   limit=""):
     res = [[
         item_id, name, image_link, onlyupdates, onlyinstalled, orderby,
         limit
     ]]
     pngicon = metrixTools.webPixmap(
         metrixDefaults.URL_STORE + str(image_link),
         "openStoreImage-" + str(column_id) + str(item_id))
     res.append(
         MultiContentEntryPixmapAlphaBlend(pos=(81, 1),
                                           size=(128, 128),
                                           png=loadPNG(pngicon)))
     res.append(
         MultiContentEntryText(pos=(0, 128),
                               size=(290, 40),
                               font=0,
                               text=_(name),
                               flags=RT_HALIGN_CENTER))
     return res
Ejemplo n.º 2
0
 def threadworker(self):
     while self.finished == False:
         if self.getCatalog == True:
             self.getCatalog = False
             self.getDesigns()
         if self.getEntry == True:
             self.getEntry = False
             returnValue = self.currentname
             self.picPath = metrixTools.webPixmap(self.screenshotpath + returnValue)
             # print returnValue
             metrixTools.callOnMainThread(self.refreshMeta)
         time.sleep(1)
Ejemplo n.º 3
0
 def threadworker(self):
     while (self.finished == False):
         if self.getCatalog == True:
             self.getCatalog = False
             self.getDesigns()
         if self.getEntry == True:
             self.getEntry = False
             returnValue = self.currentname
             self.picPath = metrixTools.webPixmap(self.screenshotpath +
                                                  returnValue)
             #print returnValue
             metrixTools.callOnMainThread(self.refreshMeta)
         time.sleep(1)
Ejemplo n.º 4
0
	def threadworker(self):
		while(self.finished==False):
			if self.getCatalog == True:
				self.getCatalog = False
				self.getSkinParts()
			if self.getEntry == True:
				self.getEntry = False
				try:
					self.picPath = metrixTools.webPixmap(self["menu"].l.getCurrentSelection()[0][13] + "&width=550")
				except:
					pass
				metrixTools.callOnMainThread(self.refreshMeta)
			if self.action_downloadSkinPart == True:
				self.action_downloadSkinPart = False
				self.downloadSkinPart()
			time.sleep(1)
Ejemplo n.º 5
0
	def threadworker(self):
		while(self.finished==False):
			if self.getCatalog == True:
				self.getCatalog = False
				self.getPackages()
			if self.getEntry == True:
				self.getEntry = False
				try:
					self.image = metrixTools.webPixmap(self["menu"].l.getCurrentSelection()[0][8],'openStoreImage',{'width':550})
				except:
					pass
				metrixTools.callOnMainThread(self.refreshMeta)
			if self.action_downloadPackage == True:
				self.action_downloadPackage = False
				self.downloadPackage()
				
			time.sleep(1)
Ejemplo n.º 6
0
	def threadworker(self):
		while(self.finished==False):
			if self.getCatalog == True:
				self.getCatalog = False
				self.getPackages()
			if self.getEntry == True:
				self.getEntry = False
				try:
					self.image = metrixTools.webPixmap(self["menu"].l.getCurrentSelection()[0][8],'openStoreImage',{'width':550})
				except:
					pass
				metrixTools.callOnMainThread(self.refreshMeta)
			if self.action_downloadPackage == True:
				self.action_downloadPackage = False
				self.downloadPackage()
				
			time.sleep(1)
Ejemplo n.º 7
0
	def PackagesListEntry(self,item_id,name,author="",rating="",date="",version="",total_votes="",item_type="",image_link="",icon_link="",description="",file_link="",downloads="",previouspackage="0",date_modified="",build=0,isinstalled=False,updateavailable=False):
		res = [[item_id,name,author,rating,date,version,total_votes,item_type,image_link,icon_link,description,file_link,downloads,date_modified,build,isinstalled,updateavailable]]
		path = metrixDefaults.pathRoot()+"packages/"+str(item_id)
		if isinstalled:
			pngtype = metrixDefaults.PLUGIN_DIR + "images/package-on.png"
			if updateavailable:
				res.append(MultiContentEntryText(pos=(70, 4), size=(365, 45), font=0, text=name,color=metrixDefaults.COLOR_UPDATE_AVAILABLE))
			else:
				res.append(MultiContentEntryText(pos=(70, 4), size=(365, 45), font=0, text=name,color=metrixDefaults.COLOR_INSTALLED))
		else:
			pngtype = metrixDefaults.PLUGIN_DIR + "images/package.png"
			res.append(MultiContentEntryText(pos=(70, 4), size=(365, 45), font=0, text=name))
		
		png = metrixDefaults.PLUGIN_DIR + "images/vote"+rating+".png"
		pngicon = metrixTools.webPixmap(icon_link,"openStoreIcon"+str(item_id),{'width':54})
		res.append(MultiContentEntryPixmapAlphaBlend(pos=(445, 9), size=(185, 32), png=loadPNG(png)))
		res.append(MultiContentEntryPixmapAlphaBlend(pos=(5, 1), size=(54, 54), png=loadPNG(pngicon)))
		return res
Ejemplo n.º 8
0
	def PackagesListEntry(self,item_id,name,author="",rating="",date="",version="",total_votes="",item_type="",image_link="",icon_link="",description="",file_link="",downloads="",previouspackage="0",date_modified="",build=0,isinstalled=False,updateavailable=False):
		res = [[item_id,name,author,rating,date,version,total_votes,item_type,image_link,icon_link,description,file_link,downloads,date_modified,build,isinstalled,updateavailable]]
		path = metrixDefaults.pathRoot()+"packages/"+str(item_id)
		if isinstalled:
			pngtype = metrixDefaults.PLUGIN_DIR + "images/package-on.png"
			if updateavailable:
				res.append(MultiContentEntryText(pos=(70, 4), size=(365, 45), font=0, text=name,color=metrixDefaults.COLOR_UPDATE_AVAILABLE))
			else:
				res.append(MultiContentEntryText(pos=(70, 4), size=(365, 45), font=0, text=name,color=metrixDefaults.COLOR_INSTALLED))
		else:
			pngtype = metrixDefaults.PLUGIN_DIR + "images/package.png"
			res.append(MultiContentEntryText(pos=(70, 4), size=(365, 45), font=0, text=name))
		
		png = metrixDefaults.PLUGIN_DIR + "images/vote"+rating+".png"
		pngicon = metrixTools.webPixmap(icon_link,"openStoreIcon"+str(item_id),{'width':54})
		res.append(MultiContentEntryPixmapAlphaBlend(pos=(445, 9), size=(185, 32), png=loadPNG(png)))
		res.append(MultiContentEntryPixmapAlphaBlend(pos=(5, 1), size=(54, 54), png=loadPNG(pngicon)))
		return res
Ejemplo n.º 9
0
 def threadworker(self):
     while (self.finished == False):
         if self.getCatalog == True:
             self.getCatalog = False
             self.getSkinParts()
         if self.getEntry == True:
             self.getEntry = False
             try:
                 self.picPath = metrixTools.webPixmap(
                     self["menu"].l.getCurrentSelection()[0][13] +
                     "&width=550")
             except:
                 pass
             metrixTools.callOnMainThread(self.refreshMeta)
         if self.action_downloadSkinPart == True:
             self.action_downloadSkinPart = False
             self.downloadSkinPart()
         time.sleep(1)
Ejemplo n.º 10
0
	def CategoryEntry(self,column_id, item_id,name,image_link="",onlyupdates=False,onlyinstalled=False,orderby="",limit=""):
		res = [[item_id,name,image_link,onlyupdates,onlyinstalled,orderby,limit]]
		pngicon = metrixTools.webPixmap(metrixDefaults.URL_STORE + str(image_link),"openStoreImage-"+str(column_id)+str(item_id))
		res.append(MultiContentEntryPixmapAlphaBlend(pos=(81, 1), size=(128, 128), png=loadPNG(pngicon)))
		res.append(MultiContentEntryText(pos=(0, 128), size=(290, 40), font=0, text=_(name),flags = RT_HALIGN_CENTER))
		return res