コード例 #1
0
def main():
    print "start"
    fo = open("flights-start-page.txt","wb")

    df = Definition()

    df.TextElement("Welcome to flight schedule module.")
    df.LineBreakElement()
    df.TextElement("To find a flight, press Search and enter an flight number and airlines, or cities and date")

    fo.write(df.serialize())
    fo.close()
    print "end"
コード例 #2
0
def main():
    print "start"
    fo = open("recipes-start-page.txt","wb")

    df = Definition()

    df.GenericTextElement("Welcome to recipes module.")
    df.LineBreakElement()
    df.GenericTextElement("To find a recipe, enter an ingredient (e.g. \"bread\") and press \"Search\"")

    fo.write(df.serialize())
    fo.close()
    print "end"
コード例 #3
0
def main():
    print "start"
    fo = open("flights-start-page.txt", "wb")

    df = Definition()

    df.TextElement("Welcome to flight schedule module.")
    df.LineBreakElement()
    df.TextElement("To find a flight, press Search and enter an flight number and airlines, or cities and date")

    fo.write(df.serialize())
    fo.close()
    print "end"
コード例 #4
0
def main():
    print "start"
    fo = open("recipes-start-page.txt", "wb")

    df = Definition()

    df.GenericTextElement("Welcome to recipes module.")
    df.LineBreakElement()
    df.GenericTextElement(
        "To find a recipe, enter an ingredient (e.g. \"bread\") and press \"Search\""
    )

    fo.write(df.serialize())
    fo.close()
    print "end"
コード例 #5
0
def main():
    print "start"
    fo = open("lyrics-start-page.txt","wb")

    df = Definition()

    gtxt = df.GenericTextElement("Welcome to lyrics module. Press ")
    gtxt = df.GenericTextElement("search")
    gtxt.setHyperlink("lyricsform:search")

    gtxt = df.GenericTextElement(" button to find lyrics for your favourite songs.")
    
    fo.write(df.serialize())
    
    fo.close()
    print "end"
コード例 #6
0
def main():
    print "start"
    fo = open("lyrics-start-page.txt", "wb")

    df = Definition()

    gtxt = df.GenericTextElement("Welcome to lyrics module. Press ")
    gtxt = df.GenericTextElement("search")
    gtxt.setHyperlink("lyricsform:search")

    gtxt = df.GenericTextElement(
        " button to find lyrics for your favourite songs.")

    fo.write(df.serialize())

    fo.close()
    print "end"