Beispiel #1
0
def presetTile(parent, height, color, name):
    t = Tile(parent)
    t.r.delete(0, 'end')
    t.g.delete(0, 'end')
    t.b.delete(0, 'end')

    t.r.insert(END, color[0])
    t.g.insert(END, color[1])
    t.b.insert(END, color[2])

    t.h.delete(0, 'end')
    t.h.insert(0, height)

    t.name.delete(0, 'end')
    t.name.insert(0, name)
    t.configure(borderwidth=3, relief="raised", pady=4)
    return t
Beispiel #2
0
def addTile(Event):
    t = Tile(tiles)
    t.grid()
    t.configure(borderwidth=3, relief="raised", pady=4)