def __init__(self, parent, categorie="familles"):
        wx.Panel.__init__(self, parent, id=-1, style=wx.TAB_TRAVERSAL)
        self.parent = parent
        self.categorie = categorie

        # Contrôles
        self.listview = OL_Etiquettes.ListView(
            self,
            id=-1,
            categorie=categorie,
            style=wx.LC_REPORT | wx.SUNKEN_BORDER | wx.LC_SINGLE_SEL
            | wx.LC_HRULES | wx.LC_VRULES)
        self.listview.SetMinSize((10, 10))
        self.barre_recherche = OL_Etiquettes.CTRL_Outils(
            self, listview=self.listview, afficherCocher=True)
        self.barre_recherche.SetBackgroundColour((255, 255, 255))
        self.listview.MAJ()

        # Layout
        grid_sizer_base = wx.FlexGridSizer(rows=2, cols=1, vgap=5, hgap=5)
        grid_sizer_base.Add(self.listview, 1,
                            wx.LEFT | wx.RIGHT | wx.TOP | wx.EXPAND, 10)
        grid_sizer_base.Add(self.barre_recherche, 1,
                            wx.LEFT | wx.RIGHT | wx.BOTTOM | wx.EXPAND, 10)
        grid_sizer_base.AddGrowableRow(0)
        grid_sizer_base.AddGrowableCol(0)
        self.SetSizer(grid_sizer_base)
        self.Layout()
    def __init__(self,
                 parent,
                 categorie="individus",
                 IDindividu=None,
                 IDfamille=None):
        wx.Panel.__init__(self, parent, id=-1)

        # Contrôles
        self.listview = OL_Etiquettes.ListView(
            self,
            id=-1,
            categorie=categorie,
            IDindividu=IDindividu,
            IDfamille=IDfamille,
            style=wx.LC_REPORT | wx.SUNKEN_BORDER | wx.LC_SINGLE_SEL
            | wx.LC_HRULES | wx.LC_VRULES)
        self.listview.SetMinSize((10, 10))
        self.barre_recherche = OL_Etiquettes.CTRL_Outils(
            self, listview=self.listview, afficherCocher=True)
        self.listview.MAJ()
        self.listview.CocheListeTout()

        # Layout
        sizer = wx.BoxSizer(wx.VERTICAL)
        sizer.Add(self.listview, 1, wx.EXPAND | wx.BOTTOM, 5)
        sizer.Add(self.barre_recherche, 0, wx.EXPAND, 0)
        self.SetSizer(sizer)
        sizer.Fit(self)