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()
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