- self.prof_seg_nb.AddPage(self.tab_prof_seg, 'classe %i' % (i + 1))
-
- if clnb > 2 :
- self.TabAFC = aui.AuiNotebook(panel.TabChdSim, -1, wx.DefaultPosition)
- log.info('read AFC')
- list_graph=read_list_file(DictPathOut['liste_graph_afc'], self.encoding)
- self.tabAFCGraph = GraphPanelAfc(self.TabAFC, DictPathOut, list_graph, self.clnb, coding=self.encoding)
- self.TabAFC.AddPage(self.tabAFCGraph, 'AFC')
-
- if os.path.exists(self.DictPathOut['afc_facteur']) :
- dictrow, first = ReadList(self.DictPathOut['afc_facteur'], self.encoding)
- self.TabAFC_facteur = ListForSpec(self.parent, parametres, dictrow, first)
- #dictrow, first = ReadList(self.DictPathOut['afc_row'], self.encoding)
- #self.TabAFC_ligne = ListForSpec(self.parent, self.parametres, dictrow, first)
- #dictrow, first = ReadList(self.DictPathOut['afc_col'], self.encoding)
- #self.TabAFC_colonne = ListForSpec(parent, self.parametres, dictrow, first)
- self.TabAFC.AddPage(self.TabAFC_facteur, 'Facteurs')
- #self.TabAFC.AddPage(self.TabAFC_colonne, u'Colonnes')
- #self.TabAFC.AddPage(self.TabAFC_ligne, u'Lignes')
-
- sizer_3 = wx.BoxSizer(wx.VERTICAL)
- self.parent.nb_panel_2 = wx.Panel(panel.TabChdSim, -1)
- self.parent.button_simi = wx.Button(self.parent.nb_panel_2, -1, "Voyager")
- self.parent.simi3dpanel = simi3d(self.parent.nb_panel_2, -1)
- sizer_3.Add(self.parent.simi3dpanel, 1, wx.EXPAND, 0)
- sizer_3.Add(self.parent.button_simi, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
- self.parent.nb_panel_2.SetSizer(sizer_3)
- self.TabAFC.AddPage(self.parent.nb_panel_2, "graph 3D")
- self.parent.Bind(wx.EVT_BUTTON, self.onsimi, self.parent.button_simi)
-
- panel.TabChdSim.AddPage(panel.ProfNB, 'Profils')
- #panel.TabChdSim.AddPage(panel.AntiProfNB, 'Antiprofils')
- dlg.Update(4 + self.clnb, 'Affichage...')
- if clnb > 2 :
- panel.TabChdSim.AddPage(self.TabAFC, 'AFC')
- if os.path.exists(DictPathOut['prof_seg']) :
- panel.TabChdSim.AddPage(self.prof_seg_nb, u'Profils des segments répétés')
-
+ self.prof_seg_nb.AddPage(self.tab_prof_seg, _(u"Cluster").decode('utf8') + ' %i' % (i + 1))
+ panel.ProfNB.SetSelection(0)
+
+ if clnb > 2 :
+ self.TabAFC = aui.AuiNotebook(panel.TabChdSim, -1, wx.DefaultPosition)
+ log.info('read AFC')
+ list_graph=read_list_file(DictPathOut['liste_graph_afc'], self.encoding)
+ self.tabAFCGraph = GraphPanelAfc(self.TabAFC, DictPathOut, list_graph, self.clnb, coding=self.encoding)
+ self.TabAFC.AddPage(self.tabAFCGraph, _(u"CA").decode('utf8'))
+
+ if os.path.exists(self.DictPathOut['afc_facteur']) :
+ dictrow, first = ReadList(self.DictPathOut['afc_facteur'], self.encoding)
+ self.TabAFC_facteur = ListForSpec(self.parent, parametres, dictrow, first[1:])
+ #dictrow, first = ReadList(self.DictPathOut['afc_row'], self.encoding)
+ #self.TabAFC_ligne = ListForSpec(self.parent, self.parametres, dictrow, first)
+ #dictrow, first = ReadList(self.DictPathOut['afc_col'], self.encoding)
+ #self.TabAFC_colonne = ListForSpec(parent, self.parametres, dictrow, first)
+ self.TabAFC.AddPage(self.TabAFC_facteur, _(u"Factor").decode('utf8'))
+ #self.TabAFC.AddPage(self.TabAFC_colonne, u'Colonnes')
+ #self.TabAFC.AddPage(self.TabAFC_ligne, u'Lignes')
+
+ sizer_3 = wx.BoxSizer(wx.VERTICAL)
+ self.parent.nb_panel_2 = wx.Panel(panel.TabChdSim, -1)
+ self.parent.button_simi = wx.Button(self.parent.nb_panel_2, -1, "Voyager")
+ self.parent.simi3dpanel = simi3d(self.parent.nb_panel_2, -1)
+ sizer_3.Add(self.parent.simi3dpanel, 1, wx.EXPAND, 0)
+ sizer_3.Add(self.parent.button_simi, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
+ self.parent.nb_panel_2.SetSizer(sizer_3)
+ self.TabAFC.AddPage(self.parent.nb_panel_2, _(u"3D graph").decode('utf8'))
+ self.parent.Bind(wx.EVT_BUTTON, self.onsimi, self.parent.button_simi)
+
+ panel.TabChdSim.AddPage(panel.ProfNB, _(u"Profiles").decode('utf8'))
+ #panel.TabChdSim.AddPage(panel.AntiProfNB, 'Antiprofils')
+ dlg.Update(4 + self.clnb, 'Affichage...')
+ if clnb > 2 :
+ panel.TabChdSim.AddPage(self.TabAFC, _(u"CA").decode('utf8'))
+ if os.path.exists(DictPathOut['prof_seg']) :
+ panel.TabChdSim.AddPage(self.prof_seg_nb, _(u"Repeated segments profiles").decode('utf8'))
+