self.cd.pack(fill='both', expand=1) else: tkMessageBox.showinfo('cannot show hits/spoligo', 'no spoligos found') if __name__ == '__main__': import json from kvarq.genes import ancestor from kvarq.analyse import Coverage spacing = 25 start = 761082 stop = 761162 seq = ancestor.seq(start, stop, spacing, spacing) coverage = Coverage(seq) coverage.deserialize('20-21-22-24-24-25-29-29-30-30-31-32-33-33-33-33-33-36-38-40-41-41-41-41-42-41-44-43-43-44-44-44-45-43-43-44-44-46-47-44-44-43-44-45-44-43-43-43-41-40-40-35-34-33-34-33-34-34-33-32-32-30-29-30-28-28-26-25-25-25-22-21-22-23-22-22-23-23-21-22-23-22-21-21-21-20-19-20-18-18-18-19-18-19-18-18-18-18-17-17-16-14-14-13-13-13-9-9-9-9-9-9-9-8-8-8-7-7-7-7-5-5-5-5-5-5-4-4-4-4-4 37[A]-42[A]-53[G]-78[T]-109[A]') win = tk.Tk() cd = CoverageDisplay(win, start, coverage) cd.pack(fill='both', expand=1) win.wm_geometry('800x600') HitHistogramWindow([1,1,2,4,5,3,3,1], indexed=True) ReadlengthWindow([0,0,0,1,1,2,1,2,5,2,3,0,2,2,1,0,0]) tk.mainloop()