import gtk

        #lanceur du debut du programme


class lanceur(gtk.Window):
    
    def __init__(self):
        super(lanceur,self).__init__()
        
        
        vbox = gtk.VBox()
        self.add(vbox)

        # content
        img = gtk.image_new_from_file('clauzanpentest.png')
        vbox.pack_start(img)
        self.label = gtk.Label()
        vbox.pack_start(self.label)

        # color and position
        self.set_decorated(False)
        color = gtk.gdk.color_parse('#f2f2ff')
        self.modify_bg(gtk.STATE_NORMAL, color)
        self.set_position(gtk.WIN_POS_CENTER)
        self.set_size_request(700,350)

        # ensure it is rendered immediately
        self.show_all()
        
        while gtk.events_pending():
            gtk.main_iteration()

    def status(self, text):
        '''texte qui s'affiche en bas.'''
        self.label.set_text(text)
        while gtk.events_pending():
            gtk.main_iteration()
