2 # -*- coding: utf-8 -*-
3 #Author: Pierre Ratinaud
4 #Copyright (c) 2012 Pierre Ratinaud
13 from chemins import ffr,FFF
14 import wx.lib.sized_controls as sc
15 from time import sleep
16 from functions import exec_rcode, check_Rresult
17 from dialog import ChiDialog
20 def __init__(self,parent):
22 self.tableau = self.parent.tableau
23 chioption = { 'valobs' : True,
32 self.dlg = ChiDialog(parent, -1, u"Chi2", chioption, size=(400, 350),
33 style = wx.DEFAULT_DIALOG_STYLE
35 self.dlg.CenterOnParent()
39 self.val = self.dlg.ShowModal()
40 if self.val==wx.ID_OK :
41 self.ColSel1 = self.dlg.list_box_1.GetSelections()
42 self.ColSel2 = self.dlg.list_box_2.GetSelections()
43 if len(self.ColSel1) != len(self.ColSel2) :
44 print 'pas meme taille'
50 table_assoc = self.tableau.select_col(self.ColSel1)
51 table_rank = self.tableau.select_col(self.ColSel2)