anna.f_save_open() if __name__ == '__main__': root = pgwidth.width() root.size = [1200, 700] root.ima_papier = [255, 250, 200] root.width() root_s = {} root_s["taile"] = 1 root_s["surface"] = root.root anna = anna(root.root, root) hana = paha.hana(root.root, root) vivien = pavi.vivien(root.root, root) m_palcl = paxa_ncolor.n_color(root.root, root) m_selc = paxa_select.selc(None, None) c_cmd = paxa_cmd.cmd(anna) anna.n_root.update( vivien.make_surface("n_root", [1000, 700], [280, 0], [250, 255, 250], 16, 1)) anna.n_root.update( vivien.make_surface("d_disp", [280, 200], [20, 10], [255, 255, 255], 2, 1)) anna.pad.update(hana.nez()) anna.gril_game.update(vivien.make_gril(0, 16)) anna.gril_game.update(vivien.make_gril("OPEN", 100)) anna.gril_game["OPEN"]["on"] = 0 anna.module_conf({"n_color": m_palcl})
def __init__(self,root,rt): "" self.root = root self.rt = rt self.on = 1 self.curseur = { 'ajt':[0,0],'taile':16,'on':1,"var":None, 'm_pos':{(0,0):{"w":5,'cl':[0,0,200],"taile":16,"read":None}}} self.pal_cl = { 'ajt':[0,0],'var':None,'taile':32,"on":1, 'lim':[3,3]} """ self.pal_cl["m_pos"]={ (0, 1): {'w': 0, 'cl': [128, 0, 0],'taile':16}, (1, 2): {'w': 0, 'cl': [0, 255, 0],'taile':16}, (3, 2): {'w': 0, 'cl': [255, 255, 0],'taile':16}, (0, 0): {'w': 0, 'cl': [0, 0, 0],'taile':16}, (3, 3): {'w': 0, 'cl': [255, 255, 255],'taile':16}, (3, 0): {'w': 0, 'cl': [128, 128, 128],'taile':16}, (3, 1): {'w': 0, 'cl': [128, 128, 0],'taile':16}, (1, 1): {'w': 0, 'cl': [0, 128, 0],'taile':16}, (2, 1): {'w': 0, 'cl': [128, 0, 128],'taile':16}, (0, 2): {'w': 0, 'cl': [255, 0, 0],'taile':16}, (2, 0): {'w': 0, 'cl': [0, 0, 128],'taile':16}, (1, 3): {'w': 0, 'cl': [0, 255, 255],'taile':16}, (2, 3): {'w': 0, 'cl': [192, 192, 192],'taile':16}, (2, 2): {'w': 0, 'cl': [0, 0, 255],'taile':16}, (1, 0): {'w': 0, 'cl': [128, 0, 128],'taile':16}, (0, 3): {'w': 0, 'cl': [255, 0, 255],'taile':16} }""" self.pal_cl["m_pos"]={ (0,0):{'w': 0, 'cl': [100, 0, 0],'taile':16}, (0,1):{'w': 0, 'cl': [128, 0, 0],'taile':16}, (0,2):{'w': 0, 'cl': [255, 0, 0],'taile':16}, (0,3):{'w': 0, 'cl': [255, 28, 100],'taile':16}, (0,4):{'w': 0, 'cl': [255, 178, 150],'taile':16}, (1,0):{'w': 0, 'cl': [0, 100, 0],'taile':16}, (1,1):{'w': 0, 'cl': [0, 128, 0],'taile':16}, (1,2):{'w': 0, 'cl': [0, 255, 0],'taile':16}, (1,3):{'w': 0, 'cl': [28, 255, 100],'taile':16}, (1,4):{'w': 0, 'cl': [178, 255, 150],'taile':16}, (2,0):{'w': 0, 'cl': [100, 0, 255],'taile':16}, (2,1):{'w': 0, 'cl': [128, 0, 255],'taile':16}, (2,2):{'w': 0, 'cl': [0, 0, 255],'taile':16}, (2,3):{'w': 0, 'cl': [30, 128, 255],'taile':16}, (2,4):{'w': 0, 'cl': [50, 198, 255],'taile':16}, (3,0):{'w': 0, 'cl': [0, 0, 0],'taile':16}, (3,1):{'w': 0, 'cl': [70, 70, 70],'taile':16}, (3,2):{'w': 0, 'cl': [140, 140, 140],'taile':16}, (3,3):{'w': 0, 'cl': [205, 205, 205],'taile':16}, (3,4):{'w': 0, 'cl': [225, 225, 255],'taile':16}, (3,5):{'w': 0, 'cl': [255, 255, 255],'taile':16} } self.n_root = {} self.vivien = pavi.vivien(root,rt) self.s_name = "toor" self.s_size = [150,150] self.s_pos = [1,1] self.s_cl = [128,128,128] self.s_taile = 16 self.s_on = 1
def __init__(self, root, rt): self.root = root self.rt = rt self.on = 1 self.sur = {} self.pad = {} self.vivien = pavi.vivien(root, rt) self.pad_ij = [{ 'pos': [10, 12], 'cl': [12, 120, 23], 'w': 1 }, { 'pos': [10, 15], 'cl': [120, 12, 23], 'w': 1 }] self.gril_game = {} self.gril_game[16] = {} self.gril_game[16] = { (12, 10): { 'w': 0, 'cl': [250, 0, 250] }, (11, 10): { 'w': 0, 'cl': [250, 0, 250] }, (13, 10): { 'w': 0, 'cl': [250, 0, 250] }, (10, 10): { 'w': 0, 'cl': [250, 0, 250] } } self.gril_game[16]['on'] = 1 self.gril_game[16]['ajt'] = [0, 0] self.gril_game[16]['var'] = {} self.gril_game[16]['taile'] = 16 self.gril_game[8] = {} self.gril_game[8] = { (21, 19): { 'w': 1, 'cl': [20, 0, 250] }, (11, 11): { 'w': 1, 'cl': [20, 0, 250] }, (13, 11): { 'w': 1, 'cl': [20, 0, 250] }, (10, 11): { 'w': 1, 'cl': [20, 0, 250] } } self.gril_game[8]['on'] = 1 self.gril_game[8]['ajt'] = [0, 0] self.gril_game[8]['var'] = {} self.gril_game[8]['taile'] = 8
anna.claque() if __name__ == '__main__': root = pgwidth.width() root.size = [1300, 700] root.ima_papier = [192, 192, 192] root.width() root_s = {} root_s['taile'] = 1 root_s['surface'] = root.root anna = anna(root.root, root) hana = paha.hana(root.root, root) vivien = pavi.vivien(root.root, root, anna) m_palcl = paxa_ncolor.n_color(root.root, root) #m_selc = paxa_select.selc(None,None) #anna.n_root.update(vivien.make_surface("cl_",[260,70],[0,0],[255,144,144],1,1)) anna.n_root.update( vivien.make_surface("cl_", [260, 70], [5, 5], [255, 255, 255], 1, 1)) anna.n_root.update( vivien.make_surface("cl0", [60, 30], [5, 20], [255, 255, 255], 16, 1)) anna.n_root.update( vivien.make_surface("cl1", [60, 30], [67, 20], [255, 255, 255], 16, 1)) anna.n_root.update( vivien.make_surface("cl2", [60, 30], [129, 20], [255, 255, 255], 16, 1)) anna.n_root.update( vivien.make_surface("cl3", [60, 30], [191, 20], [255, 255, 255], 16, 1))