From: Pierre Ratinaud Date: Wed, 17 Dec 2014 23:20:12 +0000 (+0100) Subject: ... X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=commitdiff_plain;h=4da73cc236c915a45115bd5a32ab8c74fdd77eef;ds=sidebyside ... --- diff --git a/checkversion.py b/checkversion.py index 743f7ca..d1211ee 100644 --- a/checkversion.py +++ b/checkversion.py @@ -41,7 +41,7 @@ def NewVersion(parent): Une nouvelle version d'IRaMuTeQ (%s) est disponible. Vous pouvez la télécharger à partir du site web iramuteq : http://www.iramuteq.org""" % '-'.join(lastversion) - dlg = wx.MessageDialog(parent, msg, u"Nouvelle version disponible", wx.OK | wx.NO_DEFAULT | wx.ICON_WARNING) + dlg = wx.MessageDialog(parent, msg, u"Nouvelle version disponible", wx.OK | wx.ICON_WARNING) dlg.CenterOnParent() if dlg.ShowModal() in [wx.ID_NO, wx.ID_CANCEL]: evt.Veto() diff --git a/dialog.py b/dialog.py index 818485e..bfd17e2 100755 --- a/dialog.py +++ b/dialog.py @@ -1881,38 +1881,38 @@ class PrefDendro ( wx.Dialog ): self.m_staticline41 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL ) fgSizer1.Add( self.m_staticline41, 0, wx.EXPAND |wx.ALL, 5 ) + if self.param['typedendro'] == 'classique' : + self.m_staticText5 = wx.StaticText( self, wx.ID_ANY, _(u"Color or black and white").decode('utf8'), wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_staticText5.Wrap( -1 ) + fgSizer1.Add( self.m_staticText5, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) - self.m_staticText5 = wx.StaticText( self, wx.ID_ANY, _(u"Color or black and white").decode('utf8'), wx.DefaultPosition, wx.DefaultSize, 0 ) - self.m_staticText5.Wrap( -1 ) - fgSizer1.Add( self.m_staticText5, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) + m_radioBox1Choices = [ _(u"color").decode('utf8'), _(u"black and white").decode('utf8') ] + self.m_radioBox1 = wx.RadioBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, m_radioBox1Choices, 1, wx.RA_SPECIFY_COLS ) + self.m_radioBox1.SetSelection( 0 ) + fgSizer1.Add( self.m_radioBox1, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_RIGHT|wx.ALL, 5 ) - m_radioBox1Choices = [ _(u"color").decode('utf8'), _(u"black and white").decode('utf8') ] - self.m_radioBox1 = wx.RadioBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, m_radioBox1Choices, 1, wx.RA_SPECIFY_COLS ) - self.m_radioBox1.SetSelection( 0 ) - fgSizer1.Add( self.m_radioBox1, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_RIGHT|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 ) + bSizer4 = wx.BoxSizer( wx.HORIZONTAL ) - bSizer4 = wx.BoxSizer( wx.HORIZONTAL ) - - self.m_staticText6 = wx.StaticText( self, wx.ID_ANY, _(u"Add cluster size").decode('utf8'), wx.DefaultPosition, wx.DefaultSize, 0 ) - self.m_staticText6.Wrap( -1 ) - bSizer4.Add( self.m_staticText6, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) + self.m_staticText6 = wx.StaticText( self, wx.ID_ANY, _(u"Add cluster size").decode('utf8'), wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_staticText6.Wrap( -1 ) + bSizer4.Add( self.m_staticText6, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) - self.m_checkBox1 = wx.CheckBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 ) - self.m_checkBox1.SetValue(True) - bSizer4.Add( self.m_checkBox1, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) + self.m_checkBox1 = wx.CheckBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 ) + self.m_checkBox1.SetValue(True) + bSizer4.Add( self.m_checkBox1, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) - fgSizer1.Add( bSizer4, 1, wx.EXPAND, 5 ) + fgSizer1.Add( bSizer4, 1, wx.EXPAND, 5 ) - m_radioBox2Choices = [ _(u"circular diagram").decode('utf8'), _(u"bar").decode('utf8') ] - self.m_radioBox2 = wx.RadioBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, m_radioBox2Choices, 1, wx.RA_SPECIFY_COLS ) - self.m_radioBox2.SetSelection( 0 ) - fgSizer1.Add( self.m_radioBox2, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_RIGHT|wx.ALL, 5 ) + m_radioBox2Choices = [ _(u"circular diagram").decode('utf8'), _(u"bar").decode('utf8') ] + self.m_radioBox2 = wx.RadioBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, m_radioBox2Choices, 1, wx.RA_SPECIFY_COLS ) + self.m_radioBox2.SetSelection( 0 ) + fgSizer1.Add( self.m_radioBox2, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_RIGHT|wx.ALL, 5 ) self.m_staticline7 = wx.StaticLine( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL ) fgSizer1.Add( self.m_staticline7, 0, wx.EXPAND |wx.ALL, 5 ) @@ -1942,10 +1942,11 @@ class PrefDendro ( wx.Dialog ): self.m_spinCtrl2.SetValue(self.param['width']) self.m_spinCtrl1.SetValue(self.param['height']) self.m_choice1.SetSelection(self.param['type_dendro']) - self.m_radioBox1.SetSelection(self.param['color_nb']) - self.m_checkBox1.SetValue(self.param['taille_classe']) - self.m_radioBox2.SetSelection(self.param['type_tclasse']) self.choice_format.SetSelection(self.param['svg']) + if self.param['typedendro'] == 'classique' : + self.m_radioBox1.SetSelection(self.param['color_nb']) + self.m_checkBox1.SetValue(self.param['taille_classe']) + self.m_radioBox2.SetSelection(self.param['type_tclasse']) def __del__( self ): pass diff --git a/guifunct.py b/guifunct.py index 6396a5b..03afc95 100644 --- a/guifunct.py +++ b/guifunct.py @@ -999,8 +999,6 @@ class CreateTgenDialog ( wx.Frame ): bSizer2 = wx.BoxSizer( wx.VERTICAL ) - namesizer = wx.BoxSizer( wx.VERTICAL ) - namepan = wx.Panel(self, -1) fgSizer3 = wx.FlexGridSizer( 0, 2, 0, 0 ) @@ -1014,15 +1012,12 @@ class CreateTgenDialog ( wx.Frame ): self.m_textCtrl1 = wx.TextCtrl( namepan, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 ) self.m_textCtrl1.SetMinSize( wx.Size( 250,-1 ) ) - fgSizer3.Add( self.m_textCtrl1, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) namepan.SetSizer( fgSizer3 ) - namesizer.Add( namepan, 1, wx.EXPAND, 5 ) - - bSizer2.Add( namesizer, 1, wx.ALIGN_CENTER_HORIZONTAL, 5 ) + bSizer2.Add( namepan, 1, wx.EXPAND, 5 ) self.ip = VItemsPicker(self,-1, lemlist, _(u'Forms').decode('utf8'), _('Selection').decode('utf8')) self.ip._source.SetMinSize( wx.Size( 350, 400 ) ) diff --git a/images/splash.png b/images/splash.png index 0e60598..38f9b9b 100644 Binary files a/images/splash.png and b/images/splash.png differ diff --git a/images/splash.svg b/images/splash.svg index cf09a24..9f5f1af 100644 --- a/images/splash.svg +++ b/images/splash.svg @@ -332,7 +332,7 @@ x="110.10663" y="146.45171" style="font-size:14px;font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#1c1010;fill-opacity:1;font-family:gargi;-inkscape-font-specification:gargi Medium" />Version 0.7 alpha 1 Version 0.7 alpha 2