if __name__ == '__main__':
    """ TEST d'un objet """
    app = wx.App(0)
    #wx.InitAllImageHandlers()
    annee = 2014
    dictParametres = {
        "mode": "inscrits",
        "periode": {
            "type": "annee",
            "annee": annee,
            "date_debut": datetime.date(annee, 1, 1),
            "date_fin": datetime.date(annee, 12, 31)
        },
        "listeActivites": [1, 2, 3, 4, 5],
        "dictActivites": {
            1: _(u"Centre de Loisirs"),
            2: _(u"Action 10-14 ans"),
            3: _(u"Camp 4-6 ans"),
            4: _(u"Camp 6-9 ans"),
            5: _(u"Camp 10-14 ans"),
            6: _(u"Art floral"),
            7: _(u"Yoga")
        },
    }
    frame_1 = MODELES.FrameTest(objet=Tableau_nombre_familles(),
                                dictParametres=dictParametres)
    app.SetTopWindow(frame_1)
    frame_1.Show()
    app.MainLoop()
Beispiel #2
0
            "annee": annee,
            "date_debut": datetime.date(annee, 1, 1),
            "date_fin": datetime.date(annee, 12, 31)
        },
        "listeActivites": [1, 2, 3, 4, 5],
        "dictActivites": {
            1: _(u"Centre de Loisirs"),
            2: _(u"Action 10-14 ans"),
            3: _(u"Camp 4-6 ans"),
            4: _(u"Camp 6-9 ans"),
            5: _(u"Camp 10-14 ans"),
            6: _(u"Art floral"),
            7: _(u"Yoga")
        },
    }
    frame_1 = MODELES.FrameTest(objet=Graphe_qf_defaut(),
                                dictParametres=dictParametres)
    app.SetTopWindow(frame_1)
    frame_1.Show()
    app.MainLoop()

##    listeActivites = (1,)
##    conditionsActivites = "(1)"
##
##
##    DB = GestionDB.DB()
##
##
##    if True : #dictParametres["mode"] == "presents" :
##        date_debut = datetime.date(2014, 7, 7)
##        date_fin = datetime.date(2014, 7, 7)
##        req = """SELECT familles.IDfamille, IDquotient, date_debut, date_fin, quotient