def __init__(self, *args): apply(KMainWindow.__init__, (self, ) + args) self.lastDir = "/var/log" self.setGeometry(0, 0, 600, 400) # self.grid = QGridLayout(self, 1, 1) self.tab = QTabWidget(self) self.tab.addTab(QMultiLineEdit(self.tab), "Tab") self.layout().addWidget(self.tab, 0, 0) self.setCaption(str(i18n("%s - lovi")) % str(i18n("(none)"))) self.initActions() self.initMenus()
def __init__(self, tailer): QMultiLineEdit.__init__(self) self.tailer = tailer for line in tailer.follow(): self.append(line)
def text(self): return unicode(QMultiLineEdit.text(self))