projects
/
iramuteq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b53cfbf
)
keyframe
author
pierre
<ratinaud@univ-tlse2.fr>
Thu, 11 Jul 2019 08:28:00 +0000
(10:28 +0200)
committer
pierre
<ratinaud@univ-tlse2.fr>
Thu, 11 Jul 2019 08:28:00 +0000
(10:28 +0200)
KeyFrame.py
patch
|
blob
|
history
diff --git
a/KeyFrame.py
b/KeyFrame.py
index
4ec826c
..
20cb046
100755
(executable)
--- a/
KeyFrame.py
+++ b/
KeyFrame.py
@@
-118,13
+118,15
@@
class AlcOptFrame(wx.Dialog):
def CreateList(self,type):
if type=='ver_sup' or type=='ver':
def CreateList(self,type):
if type=='ver_sup' or type=='ver':
- liste=[descr[0] for item,descr in self.dico.iteritems() if descr[1]==type]
+ #liste=[descr[0] for item,descr in self.dico.iteritems() if descr[1]==type]
+ liste = [forme for forme in self.corpus.formes if self.corpus.formes[forme].gram==type]
liste=list(set(liste))
else:
liste=list(set(liste))
else:
- liste=[item for item,descr in self.dico.iteritems() if descr[1]==type]
+ #liste=[item for item,descr in self.dico.iteritems() if descr[1]==type]
+ liste = [forme for forme in self.corpus.formes if self.corpus.formes[forme].gram==type]
liste.sort()
txt=('\n').join(liste)
liste.sort()
txt=('\n').join(liste)
- ListViewFrame=ListView(self.parent
.parent
)
+ ListViewFrame=ListView(self.parent)
ListViewFrame.text_ctrl_1.WriteText(txt)
ListViewFrame.text_ctrl_1.SetSelection(0,0)
ListViewFrame.text_ctrl_1.SetInsertionPoint(0)
ListViewFrame.text_ctrl_1.WriteText(txt)
ListViewFrame.text_ctrl_1.SetSelection(0,0)
ListViewFrame.text_ctrl_1.SetInsertionPoint(0)