X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=layout.py;h=0d4cac8d4f4a8439769d0946f91e26f9b8d4429b;hp=a7d7b2e340c053a8dfed3c05e532c2bfca8f5a6b;hb=f1aa29b61a02454fc716775163ead02630d4a4df;hpb=e7feb1e4d90f2b10673e039e2c98b8cfcbe761a3 diff --git a/layout.py b/layout.py index a7d7b2e..0d4cac8 100644 --- a/layout.py +++ b/layout.py @@ -548,7 +548,7 @@ class OpenCHDS(): dial.Destroy() self.corpus.get_stat_by_cluster(fileout) msg = u"Fini !" - dlg = wx.MessageDialog(self.parent, msg, _(u"Stat by cluster").decode('utf8'), wx.OK | wx.NO_DEFAULT | wx.ICON_INFORMATION) + dlg = wx.MessageDialog(self.parent, msg, _(u"Stat by cluster").decode('utf8'), wx.OK | wx.ICON_INFORMATION) dlg.CenterOnParent() if dlg.ShowModal() == wx.ID_OK : dlg.Destroy() @@ -870,10 +870,11 @@ class GraphPanelDendro(wx.Panel): self.param['width'] = dial.m_spinCtrl2.GetValue() self.param['height'] = dial.m_spinCtrl1.GetValue() self.param['type_dendro'] = dial.m_choice1.GetSelection() - self.param['color_nb'] = dial.m_radioBox1.GetSelection() - self.param['taille_classe'] = dial.m_checkBox1.GetValue() - self.param['type_tclasse'] = dial.m_radioBox2.GetSelection() self.param['svg'] = dial.choice_format.GetSelection() + if self.param['typedendro'] == 'classique' : + self.param['color_nb'] = dial.m_radioBox1.GetSelection() + self.param['taille_classe'] = dial.m_checkBox1.GetValue() + self.param['type_tclasse'] = dial.m_radioBox2.GetSelection() def make_dendro(self, dendro = 'simple') : if self.param['svg'] : @@ -961,6 +962,7 @@ class GraphPanelDendro(wx.Panel): def ondendro(self, evt): + self.param['typedendro'] = 'classique' dial = PrefDendro(self.ira, self.param) val = dial.ShowModal() if val == wx.ID_OK : @@ -968,6 +970,7 @@ class GraphPanelDendro(wx.Panel): self.make_dendro() def ondendrotexte(self, evt): + self.param['typedendro'] = 'texte' dial = PrefDendro(self.ira, self.param) val = dial.ShowModal() if val == wx.ID_OK : @@ -975,6 +978,7 @@ class GraphPanelDendro(wx.Panel): self.make_dendro(dendro = 'texte') def ondendrocloud(self, evt): + self.param['typedendro'] = 'cloud' dial = PrefDendro(self.ira, self.param) val = dial.ShowModal() if val == wx.ID_OK : @@ -1210,7 +1214,7 @@ class SimiLayout(DefaultTextLayout) : E(graph)$weight <- graph.simi$we.width write.graph(graph, fileout, format = 'graphml') #saveAsGEXF(graph, filepath = fileout) - """ % (self.pathout['RData.RData'], self.parent.RscriptsPath['simi'], fileout) + """ % (ffr(self.pathout['RData.RData']), ffr(self.parent.RscriptsPath['simi']), fileout) filetmp = tempfile.mktemp() with open(filetmp, 'w') as f : f.write(txt) @@ -1453,7 +1457,7 @@ class SimiMatLayout(DefaultMatLayout) : E(graph)$weight <- graph.simi$we.width write.graph(graph, fileout, format = 'graphml') #saveAsGEXF(graph, filepath = fileout) - """ % (self.pathout['RData.RData'], self.parent.RscriptsPath['simi'], fileout) + """ % (ffr(self.pathout['RData.RData']), ffr(self.parent.RscriptsPath['simi']), fileout) filetmp = tempfile.mktemp() with open(filetmp, 'w') as f : f.write(txt)