def main(self): self.timer = myTimer(self.master) self.numbers_to_sort = generate_numbers() self.canvas, self.columns = draw(self.numbers_to_sort) self.canvas.pack(fill=tk.BOTH, expand=1) self.t = threading.Thread(target=self.selection_sort) self.t.start()
def main(self): self.timer = myTimer(self.master) self.numbers_to_sort = generate_numbers() self.length = len(self.numbers_to_sort) self.canvas, self.columns = draw(self.numbers_to_sort) self.canvas.pack(fill=tk.BOTH, expand=1) self.t = threading.Thread(target=self.bubble_sort_recursive) self.t.start()