def create_called(rt):
    import called
    cl = len(colors)
    global cc
    cc += 1
    if cc == cl - 1:
        cc = 0
    color = colors[cc]
    g = "+100+%s" % str(65 + (cc * 100))
    called.create_Called(rt, geom=g, color=color)
示例#2
0
def create_called(rt):
    import called
    cl = len(colors)
    global cc
    cc += 1
    if cc == cl - 1:
        cc = 0
    color = colors[cc]
    g = "+100+%s" % str(65 + (cc * 100))
    called.create_Called(rt, geom=g, color=color)
示例#3
0
def create_called(rt):
    import called
    cl = len(colors)
    global cc
    cc += 1
    if cc == cl - 1:
        cc = 0
    color = colors[cc]
    g = "+100+%s" % str(65 + (cc * 100))
    p_dict = {'geom': g, 'instance': 2, 'color' : color}
    firebrick = called.create_Called(rt,param=p_dict)
示例#4
0
def open_two():
    print "open_two starts"
    firebrick = called.create_Called(root, param=p_dict_1)
    plum = called.create_Called(root, param=p_dict_2)
示例#5
0
def open_two():
    called.create_Called(root, color="firebrick", instance=1, geom="+200+650")
    called.create_Called(root, color="plum", geom="+1000+650")
示例#6
0
def open_two():
    print "open_two starts"
    firebrick = called.create_Called(root,param=p_dict_1)
    plum = called.create_Called(root,param=p_dict_2)
def open_two():
    print "open_two starts"
    called.create_Called(root, color="firebrick",
                         instance=1, geom= "+200+650")
    called.create_Called(root, color="plum", instance=2, geom="+1000+650")