Ejemplo n.º 1
0
 def async_latest():
     data = idgames.latest_files(limit=15)
     self.results_box.delete(0, "end")
     self.result_data = {}
     for file_data in data["content"]["file"]:
         self.results_box.insert("end", file_data["title"])
         self.result_data[file_data["title"]] = file_data["id"]
Ejemplo n.º 2
0
 def random_wad(self):
     data = idgames.latest_files(limit=1)
     lastid = data["content"]["file"]["id"]
     randid = random.randrange(lastid)
     IdgamesWadUI(None, self, idgames.get(id=randid))