def __set_combobox_types_adhesion(self):
        try:
            adhesion_types = [a for a in AdhesionType.select().order_by(AdhesionType.prix.asc())]
            for adhesion_type in adhesion_types:
                self.combo_box_adhesion_type.Append(adhesion_type.nom + u" - %s ¤" % adhesion_type.prix, adhesion_type)

            self.combo_box_adhesion_type.Select(0)

        except BaseException as ex:
            print ex
Esempio n. 2
0
    def __set_combobox_types_adhesion(self):
        try:
            adhesion_types = [
                a for a in AdhesionType.select().order_by(
                    AdhesionType.prix.asc())
            ]
            for adhesion_type in adhesion_types:
                self.combo_box_adhesion_type.Append(
                    adhesion_type.nom + u" - %s ¤" % adhesion_type.prix,
                    adhesion_type)

            self.combo_box_adhesion_type.Select(0)

        except BaseException as ex:
            print ex
 def __remplissage_liste(self):
     try:
         self.liste_adhesion_types.SetObjects([a for a in AdhesionType.select()])
     except BaseException as ex:
         print ex
 def __remplissage_liste(self):
     try:
         self.liste_adhesion_types.SetObjects(
             [a for a in AdhesionType.select()])
     except BaseException as ex:
         print ex