-from functions import exec_rcode, check_Rresult
-from dialog import ChiDialog
-
-class Verges :
- def __init__(self,parent):
- self.parent = parent
- self.tableau = self.parent.tableau
- chioption = { 'valobs' : True,
- 'valtheo' : True,
- 'resi' : False,
- 'contrib' : True,
- 'pourcent' : False,
- 'pourcentl' : True,
- 'pourcentc' : True,
- 'graph' : True,
- }
- self.dlg = ChiDialog(parent, -1, u"Chi2", chioption, size=(400, 350),
- style = wx.DEFAULT_DIALOG_STYLE
- )
- self.dlg.CenterOnParent()
- self.check_val()
-
- def check_val(self) :
- self.val = self.dlg.ShowModal()
+
+#------------------------------------
+# import des modules wx
+#------------------------------------
+import wx
+import wx.lib.sized_controls as sc
+
+#------------------------------------
+# import des fichiers du projet
+#------------------------------------
+from chemins import ffr,FFF, ConstructPathOut
+from functions import exec_rcode, check_Rresult, progressbar
+from PrintRScript import ProtoScript
+from analysematrix import AnalyseMatrix
+from dialog import ProtoDial
+
+
+class Prototypical(AnalyseMatrix) :
+
+# def __init__(self, parent, parametres):
+# self.parent = parent
+# self.tableau = self.parent.tableau
+# self.parametres = parametres
+# self.parametres['filename'] = parent.tableau.parametre['filename']
+# self.parametres['pathout'] = ConstructPathOut(parent.tableau.parametre['filename'], 'proto')
+# self.parametres['type'] = 'proto'
+# dlg = progressbar(self.parent, 2)
+# self.colnames = self.tableau.get_colnames()
+# AnalyseMatrix.__init__(self, parent, parent.tableau, self.parametres, dlg = dlg)
+
+ def doparametres(self, dlg = None):
+ self.dial = ProtoDial(self.ira, self.tableau.colnames)
+ self.dial.CenterOnParent()
+ self.val = self.dial.ShowModal()