def __init__(self, parent, size=(-1, -1)): wx.Panel.__init__(self, parent, name="panel_accueil", id=-1, size=size, style=wx.TAB_TRAVERSAL) # Récupération des données de l'interface theme = UTILS_Interface.GetTheme() self.image_fond = wx.Bitmap(Chemins.GetStaticPath("Images/Interface/%s/Fond.jpg" % theme), wx.BITMAP_TYPE_ANY) # Binds self.Bind(wx.EVT_PAINT, self.OnPaint) self.Bind(wx.EVT_ERASE_BACKGROUND, lambda x:None) self.Bind(wx.EVT_SIZE, self.OnSize)
def Importation(self): # Thème theme = UTILS_Interface.GetTheme() index = 0 for code in self.liste_codes_theme : if code == theme : self.ctrl_theme.SetSelection(index) index += 1 # Langue code = UTILS_Config.GetParametre("langue_interface", None) index = 0 for codeTemp in self.liste_codes_langue : if codeTemp == code : self.ctrl_langue.SetSelection(index) index += 1