Пример #1
0
def slEmbed(other):
    html = atlastk.create_HTML()

    html.pushTag("option")
    html.putAttribute("selected", "selected")
    html.putValue(other)

    return html
Пример #2
0
def embed(other):
    html = Atlas.create_HTML()

    html.push_tag("option")
    html.put_value(other)
    #  html.pop_tag()

    return html
Пример #3
0
def sl_embed(other):
    html = atlastk.create_HTML()

    html.push_tag("option")
    html.put_attribute("selected", "selected")
    html.put_value(other)

    return html
Пример #4
0
def dl_shape(flavors):
    html = atlastk.create_HTML()

    for flavor in flavors:
        html.push_tag("option")
        html.put_attribute("value", flavor)
        html.pop_tag()

    return html
Пример #5
0
def shape(parfums):
    html = Atlas.create_HTML()

    for parfum in parfums:
        html.push_tag("option")
        html.put_attribute("value", parfum)
        html.pop_tag()

    return html
Пример #6
0
def drawGrid(dom):
    board = atlastk.create_HTML("g")
    for x in range(0, 4):
        for y in range(0, 4):
            drawSquare(board, x, y)
    dom.inner("Stones", board)
Пример #7
0
def setTexts(dom):
    texts = atlastk.create_HTML("text")
    for x in range(0, 4):
        for y in range(0, 4):
            setText(texts, x, y)
    dom.inner("Texts", texts)
Пример #8
0
def draw_grid(dom):
    board = Atlas.create_HTML("g")
    for x in range(0, 4):
        for y in range(0, 4):
            draw_square(board, x, y)
    dom.inner("Stones", board)
Пример #9
0
def set_texts(dom):
    texts = Atlas.create_HTML("text")
    for x in range(0, 4):
        for y in range(0, 4):
            set_text(texts, x, y)
    dom.set_layout("Texts", texts)