Esempio n. 1
0
 def __init__(self, text, horizontal=True):
     """Create new Text genre instance.
     
     :param text: text found by OCR software"""
     self.text = asunicode(text)
     self.horizontal = horizontal
Esempio n. 2
0
 def __init__(self, bars, argument_domain=None, value_domain=None, title=None):
     super(SimpleBarChartResult, self).__init__()
     self.bars = bars
     self.argument_domain = asunicode(argument_domain or '')
     self.value_domain = asunicode(value_domain or '')
     self.title = asunicode(title or '')