show/hide examples
This commit is contained in:
@@ -62,6 +62,10 @@ class Example(Editable):
|
||||
|
||||
def set_cluster(self, cluster):
|
||||
self.inner.cluster = cluster
|
||||
|
||||
def is_collocation(self):
|
||||
return type(self.inner) is CorpusExample
|
||||
|
||||
|
||||
class CorpusExample:
|
||||
def __init__(self, example_xml):
|
||||
@@ -81,6 +85,7 @@ class CorpusExample:
|
||||
|
||||
def get_valid_cluster(self):
|
||||
return None
|
||||
|
||||
|
||||
class MultiwordExample:
|
||||
def __init__(self, example_xml):
|
||||
|
||||
@@ -22,8 +22,9 @@ class Model:
|
||||
self.translation = None
|
||||
self.sense = None
|
||||
|
||||
# choosing examples
|
||||
# choosing and hiding examples
|
||||
self.chosen_examples = []
|
||||
self.examples_shown = True
|
||||
|
||||
self.reset()
|
||||
self.modal_reset()
|
||||
|
||||
Reference in New Issue
Block a user