def __init__(self, parent): wx.Panel.__init__(self, parent, id=-1, name="DLG_Factures_generation_selection", style=wx.TAB_TRAVERSAL) self.parent = parent self.box_factures_staticbox = wx.StaticBox(self, -1, _(u"Factures à générer")) self.listviewAvecFooter = OL_Factures_generation_selection.ListviewAvecFooter( self) self.ctrl_factures = self.listviewAvecFooter.GetListview() self.bouton_apercu = wx.BitmapButton( self, -1, wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Apercu.png"), wx.BITMAP_TYPE_ANY)) self.ctrl_recherche = OL_Factures_generation_selection.CTRL_Outils( self, listview=self.ctrl_factures, afficherCocher=True) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self.ctrl_factures.AfficherApercu, self.bouton_apercu)
def __init__(self, parent): wx.Panel.__init__(self, parent, id=-1, name="DLG_Factures_generation_selection", style=wx.TAB_TRAVERSAL) self.parent = parent # Factures à générer self.box_factures_staticbox = wx.StaticBox(self, -1, _(u"Factures à générer")) self.listviewAvecFooter = OL_Factures_generation_selection.ListviewAvecFooter(self) self.ctrl_factures = self.listviewAvecFooter.GetListview() self.bouton_apercu = wx.BitmapButton(self, -1, wx.Bitmap(Chemins.GetStaticPath("Images/16x16/Apercu.png"), wx.BITMAP_TYPE_ANY)) self.ctrl_recherche = OL_Factures_generation_selection.CTRL_Outils(self, listview=self.ctrl_factures, afficherCocher=True) # Options self.box_options_staticbox = wx.StaticBox(self, -1, _(u"Options")) self.bouton_option_montant = wx.Button(self, -1, _(u"Cocher uniquement les factures dont le montant 'Dû période' est supérieur ou égal à")) self.ctrl_option_montant = CTRL_Saisie_euros.CTRL(self) self.ctrl_option_montant.SetMinSize((70, -1)) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self.OnBoutonApercu, self.bouton_apercu) self.Bind(wx.EVT_BUTTON, self.CocherMontant, self.bouton_option_montant)