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)
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)
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(): called.create_Called(root, color="firebrick", instance=1, geom="+200+650") called.create_Called(root, color="plum", geom="+1000+650")
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")