Esempio n. 1
0
        vivien.blit(root_s, anna.n_root["d_but"])
        vivien.blit(root_s, anna.n_root["d_disp"])

        vivien.draw_pixel(rac_r, self.gril_game, None)

        #vivien.draw_pixel(anna.n_root["d_disp"],self.gril_game,2)

        for i in anna.pad:
            rac = anna.pad[i]
            vivien.draw_lib(rac_r['surface'], rac["pos"], rac['ajt'])
            self.n_color(i)
        anna.f_save_open()


if __name__ == '__main__':
    root = pgwidth.width()
    root.size = [1200, 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)
    m_palcl = paxa_ncolor.n_color(root.root, root)
    m_selc = paxa_select.selc(None, None)
    anna.n_root.update(
        vivien.make_surface("n_root", [1000, 700], [280, 0], [255, 255, 255],
Esempio n. 2
0
#!/usr/bin/env python
# -*-coding:utf-8-*-
import pygame
from pygame.locals import *
import pgwidth
import window


def bb():
    global a
    z = copy.copy(b)
    z.pos = [10, 20]
    a.act.append(z)


a = pgwidth.width()
a.width()
b = window.window(a.root, a)
b.ms_cl3 = "print 'essai_cl.py'"
b.ms_cl2 = bb

c = window.window(a.root, a)
c.color = [255, 0, 255]
c.pos = [4, 100]
#b.display()
a.act.append(c)
a.act.append(b)
a.mainloop()