X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=dialog.py;h=314700d8f078a1a3d137cd5382e46096dee75eef;hp=bf5697ed5a4cb4f5e6c29cb8ec3d8d0400608a33;hb=161583780bee75faed286c562eea67b7f22ed7aa;hpb=191e64482209e897e7bf1853646c0d2ca84db1f2 diff --git a/dialog.py b/dialog.py index bf5697e..314700d 100755 --- a/dialog.py +++ b/dialog.py @@ -1710,6 +1710,12 @@ class OptLexi(wx.Dialog): self.force_chi = force_chi #self.labellem = wx.StaticText(self, -1, u"Lemmatisation : ") #self.checklem = wx.CheckBox(self, -1) + if not self.force_chi : + self.label_typeformes = wx.StaticText(self, -1, u"Formes retenues") + typeformeschoiceChoices = [ u"actives et supplémentaires", u"actives", u"supplémentaires"] + self.typeformes = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, typeformeschoiceChoices, 0 ) + self.typeformes.SetSelection( 0 ) + self.label_var = wx.StaticText(self, -1, u"Sélection par :") self.choice = wx.Choice(self, -1, (100,50), choices = [u'variables', u'modalités']) self.label1 = wx.StaticText(self, -1, u"Choix") @@ -1747,6 +1753,9 @@ class OptLexi(wx.Dialog): sizer_3 = wx.BoxSizer(wx.HORIZONTAL) #sizer_2.Add(self.labellem, 0, wx.ALIGN_CENTER_VERTICAL, 3) #sizer_2.Add(self.checklem, 0, wx.ALIGN_CENTER_VERTICAL, 3) + if not self.force_chi : + sizer_2.Add(self.label_typeformes, 0, wx.ALIGN_CENTER_VERTICAL, 3) + sizer_2.Add(self.typeformes, 0, wx.ALIGN_CENTER_VERTICAL, 3) sizer_2.Add(self.label_var, 0, wx.ALIGN_CENTER_VERTICAL, 3) sizer_2.Add(self.choice, 0, wx.ALIGN_CENTER_VERTICAL, 3) sizer_2.Add(self.label1, 0, wx.ALIGN_CENTER_VERTICAL, 3) @@ -1907,7 +1916,7 @@ class PrefDendro ( wx.Dialog ): class PrefWordCloud ( wx.Dialog ): - def __init__( self, parent ): + def __init__( self, parent, fromcluster = False ): wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"Préférences wordcloud", pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_DIALOG_STYLE ) self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize ) @@ -1967,7 +1976,17 @@ class PrefWordCloud ( wx.Dialog ): self.format = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, formatChoices, 0 ) self.format.SetSelection( 0 ) fgSizer1.Add( self.format, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) + + if fromcluster : + self.m_staticText111 = wx.StaticText( self, wx.ID_ANY, u"Taille des mots en fonction de ...", wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_staticText11.Wrap( -1 ) + fgSizer1.Add( self.m_staticText111, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) + IndiceChoices = [ u"chi2", u"fréquence" ] + self.indice = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, IndiceChoices, 0 ) + self.indice.SetSelection( 0 ) + fgSizer1.Add( self.indice, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) + self.m_staticline13 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL ) fgSizer1.Add( self.m_staticline13, 0, wx.EXPAND |wx.ALL, 5 )