projects
/
iramuteq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2bd16d1
)
dialogue
author
Pierre
<ratinaud@univ-tlse2.fr>
Thu, 31 Oct 2013 10:01:41 +0000
(11:01 +0100)
committer
Pierre
<ratinaud@univ-tlse2.fr>
Thu, 31 Oct 2013 10:01:41 +0000
(11:01 +0100)
parse_factiva_xml.py
patch
|
blob
|
history
diff --git
a/parse_factiva_xml.py
b/parse_factiva_xml.py
index
1fed159
..
8d9b8a7
100644
(file)
--- a/
parse_factiva_xml.py
+++ b/
parse_factiva_xml.py
@@
-81,17
+81,20
@@
def getcorpus_from_xml(xmldir, corpus_out):
return 'ok'
class PrefImport(wx.Dialog):
return 'ok'
class PrefImport(wx.Dialog):
- def __init__(self, parent, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE):
+ def __init__(self, parent, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE
, methode = 'mail'
):
pre = wx.PreDialog()
pre.SetExtraStyle(wx.DIALOG_EX_CONTEXTHELP)
pre.Create(parent, -1, '', pos, size, style)
self.PostCreate(pre)
pre = wx.PreDialog()
pre.SetExtraStyle(wx.DIALOG_EX_CONTEXTHELP)
pre.Create(parent, -1, '', pos, size, style)
self.PostCreate(pre)
-
+ if methode == 'xml' :
+ txt = _(u'Select a directory of xml files')
+ else :
+ txt = _(u'Select a directory of txt files')
self.parent = parent
self.parent = parent
- self.txt1 = wx.StaticText(self, -1,
u"RĂ©pertoire des fichiers xml"
)
+ self.txt1 = wx.StaticText(self, -1,
txt.encode('utf8')
)
self.dbb = filebrowse.DirBrowseButton(self, -1, size=(450, -1), changeCallback = self.fbbCallback)
self.dbb.SetLabel("")
self.dbb = filebrowse.DirBrowseButton(self, -1, size=(450, -1), changeCallback = self.fbbCallback)
self.dbb.SetLabel("")
- self.txt2 = wx.StaticText(self, -1,
u"Fichier en sortie"
)
+ self.txt2 = wx.StaticText(self, -1,
_(u'Output file').encode('utf8')
)
self.fbb = filebrowse.FileBrowseButton(self, -1, size=(450, -1), fileMode = 2)
self.fbb.SetLabel("")
self.fbb = filebrowse.FileBrowseButton(self, -1, size=(450, -1), fileMode = 2)
self.fbb.SetLabel("")
@@
-156,7
+159,7
@@
class PrefImport(wx.Dialog):
class ImportFactiva():
def __init__(self, parent, methode):
class ImportFactiva():
def __init__(self, parent, methode):
- self.dial = PrefImport(parent)
+ self.dial = PrefImport(parent
, methode=methode
)
self.dial.CenterOnParent()
val = self.dial.ShowModal()
if val == wx.ID_OK :
self.dial.CenterOnParent()
val = self.dial.ShowModal()
if val == wx.ID_OK :