Ejemplo n.º 1
0
def pipeDataToWidget(widget,index,value):
	store = StoreConn("steamcommunity.com")
	store.stockFind(value)
	while 1:
		try:
			print "[*] finding: "+store.stock[index]
			widget.yellowTextVar.set("Working")
			ilist = store.updateItemList(store.itemList[index])
			discovery(ilist,widget)
			widget.yellowTextVar.set("Found!")
		except:
			print "[-] some problems. Attempting to reconnect"
			store.recon()
Ejemplo n.º 2
0
def listStoreContents(widget,value):
	store = StoreConn("steamcommunity.com")
	widget.yellowTextVar.set("Loading Market Search...")
	store.stockFind(value)
	widget.redList.delete(0,tk.END)
	widget.redItems=[]
	for i in store.stock:
		j = i[21:]
		j = re.sub("%20"," ",j)
		widget.redList.insert(tk.END,j)
		widget.redItems.append(j)
	store.close()
	widget.yellowTextVar.set("OK!")
	return 0