def __init__(self, master=None): Tk.Frame.__init__(self, master) self.grid() self.createWidgets() self.style = Style.load('data/style.xml') self.filename = 'data/'
def test(): """open file """ style = Style.load('data/style.xml') infos = LineInfo.load('data/0001.xml') line_map = LineMap() line_map.draw(infos, style, Span(-1, 0, -1)) #line_map.draw(infos, style, Span(0, -1)) line_map.mainloop()