fgSizer1.SetFlexibleDirection( wx.BOTH )
fgSizer1.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
- self.m_staticText1 = wx.StaticText( self, wx.ID_ANY, u"Sélectionner les formes", wx.DefaultPosition, wx.DefaultSize, 0 )
- self.m_staticText1.Wrap( -1 )
- fgSizer1.Add( self.m_staticText1, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_LEFT|wx.ALL, 5 )
+ #self.m_staticText1 = wx.StaticText( self, wx.ID_ANY, u"Sélectionner les formes", wx.DefaultPosition, wx.DefaultSize, 0 )
+ #self.m_staticText1.Wrap( -1 )
+ #fgSizer1.Add( self.m_staticText1, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_LEFT|wx.ALL, 5 )
- self.but_selectcol = wx.Button( self, wx.ID_ANY, u"Sélectionner", wx.DefaultPosition, wx.DefaultSize, 0 )
- fgSizer1.Add( self.but_selectcol, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )
+ #self.but_selectcol = wx.Button( self, wx.ID_ANY, u"Sélectionner", wx.DefaultPosition, wx.DefaultSize, 0 )
+ #fgSizer1.Add( self.but_selectcol, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )
- self.m_staticline1 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
- fgSizer1.Add( self.m_staticline1, 0, wx.EXPAND |wx.ALL, 5 )
+ #self.m_staticline1 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
+ #fgSizer1.Add( self.m_staticline1, 0, wx.EXPAND |wx.ALL, 5 )
- self.m_staticline2 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
- fgSizer1.Add( self.m_staticline2, 0, wx.EXPAND |wx.ALL, 5 )
+ #self.m_staticline2 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
+ #fgSizer1.Add( self.m_staticline2, 0, wx.EXPAND |wx.ALL, 5 )
bSizer1 = wx.BoxSizer( wx.HORIZONTAL )
self.m_staticline4 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
fgSizer1.Add( self.m_staticline4, 0, wx.EXPAND |wx.ALL, 5 )
- self.m_staticText5 = wx.StaticText( self, wx.ID_ANY, u"Nombre maximum de formes", wx.DefaultPosition, wx.DefaultSize, 0 )
- self.m_staticText5.Wrap( -1 )
- fgSizer1.Add( self.m_staticText5, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_LEFT|wx.ALL, 5 )
+ #self.m_staticText5 = wx.StaticText( self, wx.ID_ANY, u"Nombre maximum de formes", wx.DefaultPosition, wx.DefaultSize, 0 )
+ #self.m_staticText5.Wrap( -1 )
+ #fgSizer1.Add( self.m_staticText5, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_LEFT|wx.ALL, 5 )
- self.spin_maxword = wx.SpinCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.SP_ARROW_KEYS, 0, 10000, 600 )
- fgSizer1.Add( self.spin_maxword, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )
+ #self.spin_maxword = wx.SpinCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.SP_ARROW_KEYS, 0, 10000, 600 )
+ #fgSizer1.Add( self.spin_maxword, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )
- self.m_staticline5 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
- fgSizer1.Add( self.m_staticline5, 0, wx.EXPAND |wx.ALL, 5 )
+ #self.m_staticline5 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
+ #fgSizer1.Add( self.m_staticline5, 0, wx.EXPAND |wx.ALL, 5 )
- self.m_staticline6 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
- fgSizer1.Add( self.m_staticline6, 0, wx.EXPAND |wx.ALL, 5 )
+ #self.m_staticline6 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL )
+ #fgSizer1.Add( self.m_staticline6, 0, wx.EXPAND |wx.ALL, 5 )
self.m_staticText6 = wx.StaticText( self, wx.ID_ANY, u"Taille du texte", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_staticText6.Wrap( -1 )
self.make_param(dial)
self.make_dendro()
-class WordCloudLayout:
- def __init__(self, ira, parent, filename):
- self.dictpathout = parent.corpus.dictpathout
- self.pathout = os.path.dirname(filename)
- self.corpus = parent.corpus
- # self.read_result()
- self.Tab = aui.AuiNotebook(ira.nb, -1, wx.DefaultPosition)
- list_graph = [['nuage_1.png', 'Nuage']]
- self.TabStatTot = GraphPanel(ira.nb, self.dictpathout, list_graph)
- #self.TabStatTot.write(self.result['glob'])
- self.Tab.AddPage(self.TabStatTot, 'Nuage')
- self.Tab.corpus = parent.corpus
- ira.nb.AddPage(self.Tab, 'WordCloud %s' % parent.conf.get('wordcloud','corpus_name'))
- ira.nb.SetSelection(ira.nb.GetPageCount() - 1)
- ira.ShowAPane("Tab_content")
+
class OpenCorpus :
def __init__(self, ira, parametres) :
def dolayout(self) :
log.info('no layout yet')
+class WordCloudLayout(DefaultTextLayout):
+ def dolayout(self):
+ #self.dictpathout = parent.corpus.dictpathout
+ #self.pathout = os.path.dirname(filename)
+ #self.corpus = parent.corpus
+ # self.read_result()
+ self.pathout.basefiles(simipath)
+ self.Tab = aui.AuiNotebook(self.ira.nb, -1, wx.DefaultPosition)
+# if os.path.exists(self.pathout['liste_graph']) :
+# list_graph = read_list_file(self.pathout['liste_graph'])
+# else :
+# list_graph = [['','']]
+ list_graph = [['nuage_1.png', 'Nuage']]
+ self.TabStatTot = GraphPanel(self.ira.nb, self.pathout, list_graph)
+ #self.TabStatTot.write(self.result['glob'])
+ self.Tab.AddPage(self.TabStatTot, 'Nuage')
+ self.Tab.corpus = self.corpus
+ self.Tab.parametres = self.parametres
+ self.ira.nb.AddPage(self.Tab, 'WordCloud %s' % self.parametres.get('corpus_name','corpus_name'))
+ self.ira.nb.SetSelection(self.ira.nb.GetPageCount() - 1)
+ self.ira.ShowAPane("Tab_content")
+
class SimiLayout(DefaultTextLayout) :
def dolayout(self) :
self.pathout.basefiles(simipath)