Пример #1
0
    def __init__(self, master=None):
        Tk.Frame.__init__(self, master)
        self.grid()
        self.createWidgets()

        self.style = Style.load('data/style.xml')
        self.filename = 'data/'
Пример #2
0
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()