class TextDialog(Dialog): def __init__(self, message, text, name='TextDialog'): Dialog.__init__(self, message, name=name) self.text = TextScroll(text) self.text.show() self.vbox.pack_start(self.text, TRUE, TRUE, 0) self.set_size_request(150, 300)
class ListTextView(_LeftListView): def __init__(self, name='ListTextVies'): _LeftListView.__init__(self, name=name) self.text_area = TextScroll('hello') self.add2(self.text_area) def set_text(self, text): self.text_area.set_text(text)
def __init__(self, text, font=None, name='TextTemplater'): TextScroll.__init__(self, text, font=font, name=name)
def __init__(self, name='ListTextVies'): _LeftListView.__init__(self, name=name) self.text_area = TextScroll('hello') self.add2(self.text_area)
def __init__(self, name="ListTextVies"): _LeftListView.__init__(self, name=name) self.text_area = TextScroll("hello") self.add2(self.text_area)